Enum pact_models::time_utils::DateTimeError
source · pub enum DateTimeError<I> {
Show 13 variants
InvalidDayInYear(String),
InvalidDayInMonth(String),
InvalidMonth(String),
InvalidQuarter(String),
InvalidWeekInYear(String),
InvalidDayOfWeek(String),
InvalidHour(String),
InvalidMinute(String),
InvalidMillisecond(String),
FullTimezonesNotSupported(String),
InvalidTimezone(String),
InvalidSecondFraction(String),
Nom(I, ErrorKind),
}
Expand description
Errors when parsing date time values
Variants§
InvalidDayInYear(String)
InvalidDayInMonth(String)
InvalidMonth(String)
InvalidQuarter(String)
InvalidWeekInYear(String)
InvalidDayOfWeek(String)
InvalidHour(String)
InvalidMinute(String)
InvalidMillisecond(String)
👎Deprecated: Use second fraction (InvalidSecondFraction)
FullTimezonesNotSupported(String)
InvalidTimezone(String)
InvalidSecondFraction(String)
Nom(I, ErrorKind)
Nom error occurred
Trait Implementations§
source§impl<I: Clone> Clone for DateTimeError<I>
impl<I: Clone> Clone for DateTimeError<I>
source§fn clone(&self) -> DateTimeError<I>
fn clone(&self) -> DateTimeError<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 DateTimeError<I>
impl<I: Debug> Debug for DateTimeError<I>
source§impl<I> ParseError<I> for DateTimeError<I>
impl<I> ParseError<I> for DateTimeError<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<DateTimeError<I>> for DateTimeError<I>
impl<I: PartialEq> PartialEq<DateTimeError<I>> for DateTimeError<I>
source§fn eq(&self, other: &DateTimeError<I>) -> bool
fn eq(&self, other: &DateTimeError<I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<I> StructuralPartialEq for DateTimeError<I>
Auto Trait Implementations§
impl<I> RefUnwindSafe for DateTimeError<I>where I: RefUnwindSafe,
impl<I> Send for DateTimeError<I>where I: Send,
impl<I> Sync for DateTimeError<I>where I: Sync,
impl<I> Unpin for DateTimeError<I>where I: Unpin,
impl<I> UnwindSafe for DateTimeError<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