Struct syntax::ext::base::MacItem[src]

pub struct MacItem {
    // some fields omitted
}

A convenience type for macros that return a single item.

Methods

impl MacItem

fn new(i: Gc<Item>) -> Box<MacResult>

Trait Implementations

impl MacResult for MacItem

fn make_items(&self) -> Option<SmallVector<Gc<Item>>>

fn make_stmt(&self) -> Option<Gc<Stmt>>

fn make_def(&self) -> Option<MacroDef>

fn make_expr(&self) -> Option<Gc<Expr>>

fn make_pat(&self) -> Option<Gc<Pat>>