Struct syntax::ext::base::MacEager   [−][src]
pub struct MacEager {
    pub expr: Option<P<Expr>>,
    pub pat: Option<P<Pat>>,
    pub items: Option<SmallVector<P<Item>>>,
    pub impl_items: Option<SmallVector<ImplItem>>,
    pub trait_items: Option<SmallVector<TraitItem>>,
    pub foreign_items: Option<SmallVector<ForeignItem>>,
    pub stmts: Option<SmallVector<Stmt>>,
    pub ty: Option<P<Ty>>,
}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<SmallVector<P<Item>>>
                           
                           
                           
                           impl_items: Option<SmallVector<ImplItem>>
                           
                           
                           
                           trait_items: Option<SmallVector<TraitItem>>
                           
                           
                           
                           foreign_items: Option<SmallVector<ForeignItem>>
                           
                           
                           
                           stmts: Option<SmallVector<Stmt>>
                           
                           
                           
                           ty: Option<P<Ty>>
                           
                    Methods
impl MacEager[src] 
impl MacEagerⓘImportant traits for Box<R>pub fn expr(v: P<Expr>) -> Box<MacResult>[src] 
ⓘImportant traits for Box<R>
pub fn expr(v: P<Expr>) -> Box<MacResult>ⓘImportant traits for Box<R>pub fn pat(v: P<Pat>) -> Box<MacResult>[src] 
ⓘImportant traits for Box<R>
pub fn pat(v: P<Pat>) -> Box<MacResult>ⓘImportant traits for Box<R>pub fn items(v: SmallVector<P<Item>>) -> Box<MacResult>[src] 
ⓘImportant traits for Box<R>
pub fn items(v: SmallVector<P<Item>>) -> Box<MacResult>ⓘImportant traits for Box<R>pub fn impl_items(v: SmallVector<ImplItem>) -> Box<MacResult>[src] 
ⓘImportant traits for Box<R>
pub fn impl_items(v: SmallVector<ImplItem>) -> Box<MacResult>ⓘImportant traits for Box<R>pub fn trait_items(v: SmallVector<TraitItem>) -> Box<MacResult>[src] 
ⓘImportant traits for Box<R>
pub fn trait_items(v: SmallVector<TraitItem>) -> Box<MacResult>ⓘImportant traits for Box<R>pub fn foreign_items(v: SmallVector<ForeignItem>) -> Box<MacResult>[src] 
ⓘImportant traits for Box<R>
pub fn foreign_items(v: SmallVector<ForeignItem>) -> Box<MacResult>ⓘImportant traits for Box<R>pub fn stmts(v: SmallVector<Stmt>) -> Box<MacResult>[src] 
ⓘImportant traits for Box<R>
pub fn stmts(v: SmallVector<Stmt>) -> Box<MacResult>ⓘImportant traits for Box<R>pub fn ty(v: P<Ty>) -> Box<MacResult>[src] 
ⓘImportant traits for Box<R>
pub fn ty(v: P<Ty>) -> Box<MacResult>Trait Implementations
impl Default for MacEager[src] 
impl Default for MacEagerimpl MacResult for MacEager[src] 
impl MacResult for MacEagerfn make_expr(self: Box<Self>) -> Option<P<Expr>>[src] 
fn make_expr(self: Box<Self>) -> Option<P<Expr>>Create an expression.
fn make_items(self: Box<Self>) -> Option<SmallVector<P<Item>>>[src] 
fn make_items(self: Box<Self>) -> Option<SmallVector<P<Item>>>Create zero or more items.
fn make_impl_items(self: Box<Self>) -> Option<SmallVector<ImplItem>>[src] 
fn make_impl_items(self: Box<Self>) -> Option<SmallVector<ImplItem>>Create zero or more impl items.
fn make_trait_items(self: Box<Self>) -> Option<SmallVector<TraitItem>>[src] 
fn make_trait_items(self: Box<Self>) -> Option<SmallVector<TraitItem>>Create zero or more trait items.
fn make_foreign_items(self: Box<Self>) -> Option<SmallVector<ForeignItem>>[src] 
fn make_foreign_items(self: Box<Self>) -> Option<SmallVector<ForeignItem>>Create zero or more items in an extern {} block
fn make_stmts(self: Box<Self>) -> Option<SmallVector<Stmt>>[src] 
fn make_stmts(self: Box<Self>) -> Option<SmallVector<Stmt>>Create zero or more statements. Read more
fn make_pat(self: Box<Self>) -> Option<P<Pat>>[src] 
fn make_pat(self: Box<Self>) -> Option<P<Pat>>Create a pattern.
fn make_ty(self: Box<Self>) -> Option<P<Ty>>[src] 
fn make_ty(self: Box<Self>) -> Option<P<Ty>>