pub enum IntervalError {
Show 16 variants
UnsupportedRange(String, String),
AddBetweenYearToMonthAndHourToSecond,
SubtractBetweenYearToMonthAndHourToSecond,
AddYearOrMonthToTime {
time: NaiveTime,
interval: Interval,
},
SubtractYearOrMonthToTime {
time: NaiveTime,
interval: Interval,
},
FailedToParseInteger(String),
FailedToParseDecimal(String),
FailedToParseTime(String),
FailedToParseYearToMonth(String),
FailedToParseDayToHour(String),
FailedToParseDayToMinute(String),
FailedToParseDayToSecond(String),
DateOverflow {
year: i32,
month: i32,
},
FailedToExtract,
ParseSupportedOnlyLiteral {
expr: Box<Expr>,
},
Unreachable,
}Variants§
UnsupportedRange(String, String)
AddBetweenYearToMonthAndHourToSecond
SubtractBetweenYearToMonthAndHourToSecond
AddYearOrMonthToTime
SubtractYearOrMonthToTime
FailedToParseInteger(String)
FailedToParseDecimal(String)
FailedToParseTime(String)
FailedToParseYearToMonth(String)
FailedToParseDayToHour(String)
FailedToParseDayToMinute(String)
FailedToParseDayToSecond(String)
DateOverflow
FailedToExtract
ParseSupportedOnlyLiteral
Unreachable
Trait Implementations§
Source§impl Debug for IntervalError
impl Debug for IntervalError
Source§impl Display for IntervalError
impl Display for IntervalError
Source§impl Error for IntervalError
impl Error for IntervalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<IntervalError> for Error
impl From<IntervalError> for Error
Source§fn from(source: IntervalError) -> Self
fn from(source: IntervalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IntervalError
impl PartialEq for IntervalError
Source§impl Serialize for IntervalError
impl Serialize for IntervalError
impl Eq for IntervalError
impl StructuralPartialEq for IntervalError
Auto Trait Implementations§
impl Freeze for IntervalError
impl RefUnwindSafe for IntervalError
impl Send for IntervalError
impl Sync for IntervalError
impl Unpin for IntervalError
impl UnwindSafe for IntervalError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more