Trait syntax::ext::base::TTMacroExpander
[−]
[src]
pub trait TTMacroExpander { fn expand<'cx>(
&self,
ecx: &'cx mut ExtCtxt,
span: Span,
input: TokenStream
) -> Box<MacResult + 'cx>; }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Represents a thing that maps token trees to Macro Results
Required Methods
ⓘImportant traits for Box<R>
fn expand<'cx>(
&self,
ecx: &'cx mut ExtCtxt,
span: Span,
input: TokenStream
) -> Box<MacResult + 'cx>
&self,
ecx: &'cx mut ExtCtxt,
span: Span,
input: TokenStream
) -> Box<MacResult + 'cx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?