pub struct MacroRule {
pub pattern: Vec<MacroToken>,
pub template: Vec<MacroToken>,
}Expand description
A single macro rewrite rule: pattern => template.
Fields§
§pattern: Vec<MacroToken>Pattern to match.
template: Vec<MacroToken>Expansion template.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MacroRule
impl RefUnwindSafe for MacroRule
impl Send for MacroRule
impl Sync for MacroRule
impl Unpin for MacroRule
impl UnsafeUnpin for MacroRule
impl UnwindSafe for MacroRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more