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

pub struct MacPat {
    // some fields omitted
}

A convenience type for macros that return a single pattern.

Methods

impl MacPat

fn new(p: P<Pat>) -> Box<MacResult + 'static>

Trait Implementations

impl MacResult for MacPat

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

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

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

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

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