Module decoder

Module decoder 

Source

ModulesΒ§

blob πŸ”’
cstore_impl πŸ”’
meta πŸ”’

StructsΒ§

BlobDecodeContext πŸ”’
Decode context used when we just have a blob of metadata from which we have to decode a header and CrateRoot. After that, MetadataDecodeContext can be used. Most notably, [BlobDecodeContext] doesn’t implement SpanDecoder
CrateMetadata πŸ”’
DecodeIterator πŸ”’
ImportedSourceFile πŸ”’
Holds information about a rustc_span::SourceFile imported from another crate. See imported_source_file() for more information.
MetadataBlob πŸ”’
A reference to the raw binary version of crate metadata. This struct applies MemDecoder’s validation when constructed so that later constructions are guaranteed to succeed.
MetadataDecodeContext πŸ”’
This is the decode context used when crate metadata was already read. Decoding of some types, like Span require some information to already been read. Can be constructed from a TyCtxt and CrateMetadataRef (see the Metadata trait)

TraitsΒ§

LazyDecoder πŸ”’
This trait abstracts over decoders that can decode lazy values using LazyState:
Metadata πŸ”’

Type AliasesΒ§

CrateNumMap πŸ”’
A map from external crate numbers (as decoded from some crate file) to local crate numbers (as generated during this session). Each external crate may refer to types in other external crates, and each has their own crate numbers.
TargetModifiers πŸ”’
Target modifiers - abi or exploit mitigations flags