Struct wagon_parser::parser::Parser
source · pub struct Parser<'source> { /* private fields */ }
Expand description
The main parser struct.
Uses a LexerBridge
internally.
§Example
use wagon_parser::parser::Parser;
let s = "S -> A;";
let mut parser = Parser::new(s);
assert!(parser.parse().is_ok())
Implementations§
Auto Trait Implementations§
impl<'source> Freeze for Parser<'source>
impl<'source> RefUnwindSafe for Parser<'source>
impl<'source> Send for Parser<'source>
impl<'source> Sync for Parser<'source>
impl<'source> Unpin for Parser<'source>
impl<'source> UnwindSafe for Parser<'source>
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