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§
- Lazy
State π - Encoding / decoding state for
Lazy
s (LazyValue
,LazyArray
, andLazyTable
). - Span
Kind π
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 π
Functions§
- provide
- rustc_
version π
Type Aliases§
- Expn
Data πTable - Expn
Hash πTable - Syntax
Context πTable