Module rustc_metadata::rmeta::table[][src]

Macros

Structs

Random-access table (i.e. offering constant-time get/set), similar to Vec<Option<T>>, but without requiring encoding or decoding all the values eagerly and in-order. A total of (max_idx + 1) * <Option<T> as FixedSizeEncoding>::BYTE_LEN bytes are used for a table, where max_idx is the largest index passed to TableBuilder::set.

Helper for constructing a table’s serialization (also see Table).

Traits

Helper trait, for encoding to, and decoding from, a fixed number of bytes. Used mainly for Lazy positions and lengths. Unchecked invariant: Self::default() should encode as [0; BYTE_LEN], but this has no impact on safety.