Struct rustc_expand::base::MacEager [−][src]
pub struct MacEager {
pub expr: Option<P<Expr>>,
pub pat: Option<P<Pat>>,
pub items: Option<SmallVec<[P<Item>; 1]>>,
pub impl_items: Option<SmallVec<[P<AssocItem>; 1]>>,
pub trait_items: Option<SmallVec<[P<AssocItem>; 1]>>,
pub foreign_items: Option<SmallVec<[P<ForeignItem>; 1]>>,
pub stmts: Option<SmallVec<[Stmt; 1]>>,
pub ty: Option<P<Ty>>,
}
Expand description
MacResult
implementation for the common case where you’ve already
built each form of AST that you might return.
Fields
expr: Option<P<Expr>>
pat: Option<P<Pat>>
items: Option<SmallVec<[P<Item>; 1]>>
impl_items: Option<SmallVec<[P<AssocItem>; 1]>>
trait_items: Option<SmallVec<[P<AssocItem>; 1]>>
foreign_items: Option<SmallVec<[P<ForeignItem>; 1]>>
stmts: Option<SmallVec<[Stmt; 1]>>
ty: Option<P<Ty>>
Implementations
Trait Implementations
Creates zero or more impl items.
Creates zero or more trait items.
Creates zero or more items in an extern {}
block
Creates zero or more statements. Read more
Auto Trait Implementations
impl !RefUnwindSafe for MacEager
impl !UnwindSafe for MacEager
Blanket Implementations
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: 200 bytes