Module syntax_pos::span_encoding [−][src]
🔬 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?
Re-exports
use GLOBALS; |
use BytePos; |
use SpanData; |
use hygiene::SyntaxContext; |
use rustc_data_structures::fx::FxHashMap; |
use rustc_data_structures::fx::FxHashMap; |
use std::hash::Hash; |
use std::hash::Hasher; |
Structs
Span |
[ Experimental ] A compressed span.
Contains either fields of |
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 ]
|