Crate in rustc_hir::hir - Rust (original) (raw)

pub struct Crate<'hir> {
    pub owners: IndexVec<LocalDefId, MaybeOwner<'hir>>,
    pub opt_hir_hash: Option<Fingerprint>,
}

Expand description

The top-level data structure that stores the entire contents of the crate currently being compiled.

For more details, see the rustc dev guide.

§

§

§

§

§

§

§

§

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: 48 bytes