pub struct Parser<T> { /* private fields */ }Implementations§
Source§impl<T> Parser<T>where
T: TokenRead,
impl<T> Parser<T>where
T: TokenRead,
pub fn new(reader: T) -> Self
pub fn parse<P: Parse>(&mut self) -> Result<P>
pub fn parse_tail<P: ParseTail>(&mut self, head: P::Head) -> Result<P>
pub fn expect<P: Parse + Expect>(&mut self, expected: &P::Value) -> Result<P>
pub fn expect_any<P: Parse + Expect>( &mut self, expected: &[&P::Value], ) -> Result<P>
pub fn peek<F, P>(&mut self, f: F) -> Result<P>
pub fn transaction<F, P>(&mut self, f: F) -> Result<P>
pub fn eos(&mut self) -> Result<bool>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Parser<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Parser<T>
impl<T> Send for Parser<T>where
T: Send,
impl<T> Sync for Parser<T>where
T: Sync,
impl<T> Unpin for Parser<T>where
T: Unpin,
impl<T> !UnwindSafe for Parser<T>
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