pub enum DateTimePatternError<I> {
TooManyPatternLetters(String, usize),
RemainingCharacters(String),
Nom(I, ErrorKind),
}
Expand description
Errors when parsing a date time pattern
Variants§
TooManyPatternLetters(String, usize)
Too many pattern letters were encountered
RemainingCharacters(String)
Unparsed characters remaining
Nom(I, ErrorKind)
Nom error occurred
Trait Implementations§
source§impl<I: Clone> Clone for DateTimePatternError<I>
impl<I: Clone> Clone for DateTimePatternError<I>
source§fn clone(&self) -> DateTimePatternError<I>
fn clone(&self) -> DateTimePatternError<I>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<I: Debug> Debug for DateTimePatternError<I>
impl<I: Debug> Debug for DateTimePatternError<I>
source§impl<I> Display for DateTimePatternError<I>
impl<I> Display for DateTimePatternError<I>
source§impl<I> ParseError<I> for DateTimePatternError<I>
impl<I> ParseError<I> for DateTimePatternError<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(_: I, _: ErrorKind, other: Self) -> Self
fn append(_: I, _: 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<I: PartialEq> PartialEq for DateTimePatternError<I>
impl<I: PartialEq> PartialEq for DateTimePatternError<I>
source§fn eq(&self, other: &DateTimePatternError<I>) -> bool
fn eq(&self, other: &DateTimePatternError<I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<I> StructuralPartialEq for DateTimePatternError<I>
Auto Trait Implementations§
impl<I> RefUnwindSafe for DateTimePatternError<I>where
I: RefUnwindSafe,
impl<I> Send for DateTimePatternError<I>where
I: Send,
impl<I> Sync for DateTimePatternError<I>where
I: Sync,
impl<I> Unpin for DateTimePatternError<I>where
I: Unpin,
impl<I> UnwindSafe for DateTimePatternError<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