pub struct Crate {
pub attrs: Vec<Attribute>,
pub items: Vec<P<Item>>,
pub span: Span,
pub id: NodeId,
pub is_placeholder: bool,
}Fields
attrs: Vec<Attribute>items: Vec<P<Item>>span: Spanid: NodeIdMust 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.
is_placeholder: boolTrait Implementations
This is true if this AstLike might support ‘custom’ (proc-macro) inner
attributes. Attributes like #![cfg] and #![cfg_attr] are not
considered ‘custom’ attributes Read more
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 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: 64 bytes