Struct rustc_ast::ast::Crate [−][src]
pub struct Crate {
pub attrs: Vec<Attribute>,
pub items: Vec<P<Item>>,
pub span: Span,
pub proc_macros: Vec<NodeId>,
}Fields
attrs: Vec<Attribute>items: Vec<P<Item>>span: Spanproc_macros: Vec<NodeId>The order of items in the HIR is unrelated to the order of items in the AST. However, we generate proc macro harnesses based on the AST order, and later refer to these harnesses from the HIR. This field keeps track of the order in which we generated proc macros harnesses, so that we can map HIR proc macros items back to their harness items.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Crate
impl !UnwindSafe for Crate
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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: 80 bytes