pub enum NomErr<E, F> {
Error(E),
Failure(F),
}
Variants§
Implementations§
Trait Implementations§
Source§impl<E: Ord, F: Ord> Ord for NomErr<E, F>
impl<E: Ord, F: Ord> Ord for NomErr<E, F>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<I, E, F> ParseError<I> for NomErr<E, F>
impl<I, E, F> ParseError<I> for NomErr<E, F>
Source§fn from_error_kind(_input: I, _kind: ErrorKind) -> Self
fn from_error_kind(_input: I, _kind: ErrorKind) -> Self
Creates an error from the input position and an ErrorKind
Source§fn append(_input: I, _kind: ErrorKind, _other: Self) -> Self
fn append(_input: I, _kind: ErrorKind, _other: Self) -> Self
Combines an existing error with a new one created from the input
position and an ErrorKind. This is useful when backtracking
through a parse tree, accumulating error context on the way
Source§impl<E: PartialOrd, F: PartialOrd> PartialOrd for NomErr<E, F>
impl<E: PartialOrd, F: PartialOrd> PartialOrd for NomErr<E, F>
impl<E: Copy, F: Copy> Copy for NomErr<E, F>
impl<E: Eq, F: Eq> Eq for NomErr<E, F>
impl<E, F> StructuralPartialEq for NomErr<E, F>
Auto Trait Implementations§
impl<E, F> Freeze for NomErr<E, F>
impl<E, F> RefUnwindSafe for NomErr<E, F>where
E: RefUnwindSafe,
F: RefUnwindSafe,
impl<E, F> Send for NomErr<E, F>
impl<E, F> Sync for NomErr<E, F>
impl<E, F> Unpin for NomErr<E, F>
impl<E, F> UnwindSafe for NomErr<E, F>where
E: UnwindSafe,
F: 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