[][src]Module syntax_pos::span_encoding

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Structs

Span [
Experimental
]

A compressed span. Contains either fields of SpanData inline if they are small, or index into span interner. The primary goal of Span is to be as small as possible and fit into other structures (that's why it uses packed as well). Decoding speed is the second priority. See SpanData for the info on span fields in decoded representation.

SpanInterner [
Experimental
]

Constants

BASE_INDEX [
Experimental
]
CTXT_INDEX [
Experimental
]
DUMMY_SP [
Experimental
]

Dummy span, both position and length are zero, syntax context is zero as well. This span is kept inline and encoded with format 0.

INLINE_OFFSETS [
Experimental
]
INLINE_SIZES [
Experimental
]
INTERNED_INDEX_OFFSET [
Experimental
]
INTERNED_INDEX_SIZE [
Experimental
]
LEN_INDEX [
Experimental
]
TAG_INLINE [
Experimental
]
TAG_INTERNED [
Experimental
]
TAG_MASK [
Experimental
]

Functions

decode [
Experimental
]
encode [
Experimental
]
with_span_interner [
Experimental
]