pub struct MacroDef {
pub name: String,
pub rules: Vec<MacroRule>,
pub doc: Option<String>,
pub hygiene: HygieneInfo,
}Expand description
A complete macro definition, potentially with multiple rules.
Fields§
§name: StringThe macro name.
rules: Vec<MacroRule>Ordered list of rewrite rules (first match wins).
doc: Option<String>Optional documentation string.
hygiene: HygieneInfoHygiene information for the definition site.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MacroDef
impl RefUnwindSafe for MacroDef
impl Send for MacroDef
impl Sync for MacroDef
impl Unpin for MacroDef
impl UnsafeUnpin for MacroDef
impl UnwindSafe for MacroDef
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