pub struct MacroParser { /* private fields */ }Expand description
Macro parser for parsing macro definitions.
Implementations§
Source§impl MacroParser
impl MacroParser
Sourcepub fn parse_rule(&mut self) -> Result<MacroRule, ParseError>
pub fn parse_rule(&mut self) -> Result<MacroRule, ParseError>
Parse a macro rule (pattern => template).
Sourcepub fn parse_rules(&mut self) -> Result<Vec<MacroRule>, ParseError>
pub fn parse_rules(&mut self) -> Result<Vec<MacroRule>, ParseError>
Parse multiple macro rules separated by |.
Auto Trait Implementations§
impl Freeze for MacroParser
impl RefUnwindSafe for MacroParser
impl Send for MacroParser
impl Sync for MacroParser
impl Unpin for MacroParser
impl UnsafeUnpin for MacroParser
impl UnwindSafe for MacroParser
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