Struct rustc_ast::ast::Crate [−][src]
pub struct Crate {
pub attrs: Vec<Attribute>,
pub items: Vec<P<Item>>,
pub span: Span,
pub is_placeholder: Option<NodeId>,
}Fields
attrs: Vec<Attribute>items: Vec<P<Item>>span: Spanis_placeholder: Option<NodeId>Trait 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
