Re-exports§
pub use encoder::EncodedMetadata;
pub use encoder::encode_metadata;
pub use encoder::rendered_const;
Modules§
- decoder π
- def_
path_ πhash_ map - encoder π
- table π
Macros§
- define_
tables πDefineLazyTables
andTableBuilders
at the same time.
Structs§
- Crate
Dep π - Crate
Header πSerialized crate metadata. - Crate
Root πSerialized.rmeta
data for a crate. - Incoherent
Impls π - Lazy
Array πA list of lazily-decoded values. - Lazy
Table πA list of lazily-decoded values, with the added capability of random access. - Lazy
Tables π - Lazy
Value πA value of type T referred to by its absolute position in the metadata, and which can be decoded lazily. - Proc
Macro πData - RawDef
Id πOn-disk representation ofDefId
. 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).
- Table
Builders π - Trait
Impls π - Variant
Data π
Enums§
- Lazy
State πEncoding / decoding state forLazy
s (LazyValue
,LazyArray
, andLazyTable
). - Span
Kind π
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 withrustc_version()
. - SYMBOL_
OFFSET π - SYMBOL_
PREINTERNED π - SYMBOL_
STR π
Functions§
- rustc_
version π
Type Aliases§
- Expn
Data πTable - Expn
Hash πTable - Syntax
Context πTable