pub struct Parser<'src> { /* private fields */ }Expand description
A parser for the language. This parser is a Pratt parser, which is a top-down operator precedence parser. Produces TokenTree (AST) from the input by using the lexer.
Implementations§
Auto Trait Implementations§
impl<'src> Freeze for Parser<'src>
impl<'src> !RefUnwindSafe for Parser<'src>
impl<'src> Send for Parser<'src>
impl<'src> Sync for Parser<'src>
impl<'src> Unpin for Parser<'src>
impl<'src> !UnwindSafe for Parser<'src>
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