Module rustc_metadata::rmeta
source · Re-exports§
pub use encoder::encode_metadata;
pub use encoder::rendered_const;
pub use encoder::EncodedMetadata;
Modules§
- decoder π
- def_path_hash_map π
- encoder π
- table π
Macros§
- define_tables πDefine
LazyTables
andTableBuilders
at the same time.
Structs§
- CrateDep π
- CrateHeader πSerialized crate metadata.
- CrateRoot πSerialized
.rmeta
data for a crate. - IncoherentImpls π
- LazyArray πA list of lazily-decoded values.
- LazyTable πA list of lazily-decoded values, with the added capability of random access.
- LazyTables π
- LazyValue πA value of type T referred to by its absolute position in the metadata, and which can be decoded lazily.
- ProcMacroData π
- RawDefId πOn-disk representation of
DefId
. This creates a type-safe way to enforce that we remap the CrateNum between the on-disk representation and the compilation session. - SpanTag πA span tag byte encodes a bunch of data, so that we can cut out a few extra bytes from span encodings (which are very common, for example, libcore has ~650,000 unique spans and over 1.1 million references to prior-written spans).
- TableBuilders π
- TraitImpls π
- VariantData π
Enums§
- LazyState πEncoding / decoding state for
Lazy
s (LazyValue
,LazyArray
, andLazyTable
). - SpanKind π
Constants§
- Metadata header which includes
METADATA_VERSION
. - METADATA_VERSION πMetadata encoding version. N.B., increment this if you change the format of metadata such that the rustc version canβt be found to compare with
rustc_version()
. - SYMBOL_OFFSET π
- SYMBOL_PREINTERNED π
- SYMBOL_STR π
Functions§
- rustc_version π
Type Aliases§
- ExpnDataTable π
- ExpnHashTable π
- SyntaxContextTable π