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<P<ImplItem>>>,
pub stmts: Option<SmallVector<P<Stmt>>>,
}Unstable
MacResult implementation for the common case where you've already
built each form of AST that you might return.
Fields
expr | Unstable |
pat | Unstable |
items | Unstable |
impl_items | Unstable |
stmts | Unstable |
Methods
impl MacEager
fn expr(v: P<Expr>) -> Box<MacResult>
Unstable
fn pat(v: P<Pat>) -> Box<MacResult>
Unstable
fn items(v: SmallVector<P<Item>>) -> Box<MacResult>
Unstable
fn impl_items(v: SmallVector<P<ImplItem>>) -> Box<MacResult>
Unstable
fn stmts(v: SmallVector<P<Stmt>>) -> Box<MacResult>
Unstable