Crate in rustc_ast::ast - Rust (original) (raw)

pub struct Crate {
    pub attrs: AttrVec,
    pub items: ThinVec<P<Item>>,
    pub spans: ModSpans,
    pub id: NodeId,
    pub is_placeholder: bool,
}

Must be equal to CRATE_NODE_ID after the crate root is expanded, but may hold expansion placeholders or an unassigned value (DUMMY_NODE_ID) before that.

§

§

§

§

§

§

§

§

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