pub struct MacroRule {
pub name: String,
pub params: Vec<String>,
pub body: String,
}Expand description
A macro rule with parameters.
Fields§
§name: StringThe macro name
params: Vec<String>Parameter names
body: StringThe body template
Implementations§
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