Struct syntax::ext::base::MacItemsUnstable [-] [+] [src]

pub struct MacItems {
    // some fields omitted
}

A type for macros that return multiple items.

Methods

impl MacItems

fn new<I: Iterator<Item=P<Item>>>(it: I) -> Box<MacResult + 'static>

Trait Implementations

impl MacResult for MacItems

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

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

fn make_methods(self: Box<Self>) -> Option<SmallVector<P<Method>>>

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

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