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 🔒 - Define
LazyTables
andTableBuilders
at the same time.
Structs§
- Attr
Flags - 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 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).
- Table
Builders 🔒 - Trait
Impls 🔒 - Variant
Data 🔒
Enums§
Constants§
- METADATA_
HEADER - 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 🔒