pub enum Parser<'lex, T, E> {
Success(RefLexer<'lex>, T),
Fail(RefLexer<'lex>, E),
}Expand description
Represents the result of a parsing operation.
A parser either succeeds with an advanced lexer and a parsed value T, or fails
and returns the unchanged lexer state along with an error E.
Variants§
Implementations§
Auto Trait Implementations§
impl<'lex, T, E> !UnwindSafe for Parser<'lex, T, E>
impl<'lex, T, E> Freeze for Parser<'lex, T, E>
impl<'lex, T, E> RefUnwindSafe for Parser<'lex, T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<'lex, T, E> Send for Parser<'lex, T, E>
impl<'lex, T, E> Sync for Parser<'lex, T, E>
impl<'lex, T, E> Unpin for Parser<'lex, T, E>
impl<'lex, T, E> UnsafeUnpin for Parser<'lex, T, E>where
T: UnsafeUnpin,
E: UnsafeUnpin,
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