Skip to main content

Module span_encoding

Module span_encoding 

Source

MacrosΒ§

match_span_kind πŸ”’

StructsΒ§

InlineCtxt πŸ”’
InlinePair πŸ”’
InlineParent πŸ”’
Interned πŸ”’
OrdSpan
Span wrapper that provides equality and ordering based only on the lo/hi fields. Exists because Span doesn’t impl PartialOrd/Ord due to the ctxt and parent fields being unorderable. Useful when storing things in source code order, e.g. in a BTreeMap<OrdSpan, T>.
Span
A compressed span.
SpanDataNoCtxt πŸ”’
SpanData minus the ctxt field. This is what we actually intern, because we can always store ctxt inline in Span.
SpanField πŸ”’
Specifies a field within one of the span formats. Provides const operations that (a) let a span format be fully specified, and (b) check/read/write the field for/from/to a span.
SpanInterner πŸ”’

ConstantsΒ§

DUMMY_SP
The dummy span has zero position, length, and context, and no parent.

FunctionsΒ§

with_span_interner πŸ”’