Struct ra_ap_mbe::MacroRules [−][src]
pub struct MacroRules { /* fields omitted */ }
Expand description
This struct contains AST for a single macro_rules
definition. What might
be very confusing is that AST has almost exactly the same shape as
tt::TokenTree
, but there’s a crucial difference: in macro rules, $ident
and $()*
have special meaning (see Var
and Repeat
data structures)
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MacroRules
impl Send for MacroRules
impl Sync for MacroRules
impl Unpin for MacroRules
impl UnwindSafe for MacroRules
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more