pub struct PatternParser { /* private fields */ }Expand description
Macro pattern parser
Implementations§
Source§impl PatternParser
impl PatternParser
pub fn new(tokens: Vec<Token>) -> Self
Sourcepub fn parse_pattern(&mut self) -> Result<Vec<PatternElement>>
pub fn parse_pattern(&mut self) -> Result<Vec<PatternElement>>
Parse a macro pattern
Auto Trait Implementations§
impl Freeze for PatternParser
impl RefUnwindSafe for PatternParser
impl Send for PatternParser
impl Sync for PatternParser
impl Unpin for PatternParser
impl UnsafeUnpin for PatternParser
impl UnwindSafe for PatternParser
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