pub enum Terminate<T> {
Incomplete(Needed),
Error(T),
Failure(T),
}
Expand description
The Terminate
enum indicates that the parser was not successful
Variants§
Incomplete(Needed)
Not enough data
Error(T)
Recoverable error
Failure(T)
Unrecoverable error, need to backtrack
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Terminate<T>where
T: Freeze,
impl<T> RefUnwindSafe for Terminate<T>where
T: RefUnwindSafe,
impl<T> Send for Terminate<T>where
T: Send,
impl<T> Sync for Terminate<T>where
T: Sync,
impl<T> Unpin for Terminate<T>where
T: Unpin,
impl<T> UnwindSafe for Terminate<T>where
T: UnwindSafe,
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