SyntaxContextTable in rustc_metadata::rmeta - Rust
Description: API documentation for the Rust `SyntaxContextTable` type in crate `rustc_metadata`.

Skip to main content

## SyntaxContextTable

# Type Alias SyntaxContextTable

Source

    type SyntaxContextTable = LazyTable<u32, Option<LazyValue<SyntaxContextKey>>>;

## Aliased Type§

    struct SyntaxContextTable {
        position: NonZero<usize>,
        width: usize,
        len: usize,
        _marker: PhantomData<fn(u32) -> Option<LazyValue<(SyntaxContext, ExpnId, Transparency)>>>,
    }

## Fields§

§`position: NonZero<usize>`§`width: usize`

The encoded size of the elements of a table is selected at runtime to drop trailing zeroes. This is the number of bytes used for each table element.

§`len: usize`

How many elements are in the table.

§`_marker: PhantomData<fn(u32) -> Option<LazyValue<(SyntaxContext, ExpnId, Transparency)>>>`

## Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain `repr(...)` attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 24 bytes