pub enum Error<I> {
DayOutOfRange,
MonthOutOfRange,
NonExistentDate,
ParseIntError(I, ErrorKind, ParseIntError),
Nom(I, ErrorKind),
}
Variants§
DayOutOfRange
MonthOutOfRange
NonExistentDate
ParseIntError(I, ErrorKind, ParseIntError)
Nom(I, ErrorKind)
Trait Implementations§
Source§impl<I> FromExternalError<I, ParseIntError> for Error<I>
impl<I> FromExternalError<I, ParseIntError> for Error<I>
Source§fn from_external_error(input: I, kind: ErrorKind, e: ParseIntError) -> Self
fn from_external_error(input: I, kind: ErrorKind, e: ParseIntError) -> Self
Creates a new error from an input position, an ErrorKind indicating the
wrapping parser, and an external error
Source§impl<I> ParseError<I> for Error<I>
impl<I> ParseError<I> for Error<I>
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
impl<I> StructuralPartialEq for Error<I>
Auto Trait Implementations§
impl<I> Freeze for Error<I>where
I: Freeze,
impl<I> RefUnwindSafe for Error<I>where
I: RefUnwindSafe,
impl<I> Send for Error<I>where
I: Send,
impl<I> Sync for Error<I>where
I: Sync,
impl<I> Unpin for Error<I>where
I: Unpin,
impl<I> UnwindSafe for Error<I>where
I: 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