Module rmeta

Source

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 and TableBuilders at the same time.

Structs§

AttrFlags
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 Lazys (LazyValue, LazyArray, and LazyTable).
SpanKind πŸ”’

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§

ExpnDataTable πŸ”’
ExpnHashTable πŸ”’
SyntaxContextTable πŸ”’