Struct syntex_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<P<ImplItem>>>,
    pub stmts: Option<SmallVector<P<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
pat
items
impl_items
stmts
ty

Methods

impl MacEager

fn expr(v: P<Expr>) -> Box<MacResult>

fn pat(v: P<Pat>) -> Box<MacResult>

fn items(v: SmallVector<P<Item>>) -> Box<MacResult>

fn impl_items(v: SmallVector<P<ImplItem>>) -> Box<MacResult>

fn stmts(v: SmallVector<P<Stmt>>) -> Box<MacResult>

fn ty(v: P<Ty>) -> Box<MacResult>

Trait Implementations

impl MacResult for MacEager

fn make_expr(self: Box<Self>) -> Option<P<Expr>>

fn make_items(self: Box<Self>) -> Option<SmallVector<P<Item>>>

fn make_impl_items(self: Box<Self>) -> Option<SmallVector<P<ImplItem>>>

fn make_stmts(self: Box<Self>) -> Option<SmallVector<P<Stmt>>>

fn make_pat(self: Box<Self>) -> Option<P<Pat>>

fn make_ty(self: Box<Self>) -> Option<P<Ty>>

Derived Implementations

impl Default for MacEager

fn default() -> MacEager