pub enum DurationCreationError {
MixedPositiveAndNegative {
months: i32,
days: i32,
nanoseconds: i64,
},
}
Expand description
Possible Duration
creation error.
Variants§
Trait Implementations§
source§impl Clone for DurationCreationError
impl Clone for DurationCreationError
source§fn clone(&self) -> DurationCreationError
fn clone(&self) -> DurationCreationError
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 Debug for DurationCreationError
impl Debug for DurationCreationError
source§impl Display for DurationCreationError
impl Display for DurationCreationError
source§impl Error for DurationCreationError
impl Error for DurationCreationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Hash for DurationCreationError
impl Hash for DurationCreationError
source§impl Ord for DurationCreationError
impl Ord for DurationCreationError
source§fn cmp(&self, other: &DurationCreationError) -> Ordering
fn cmp(&self, other: &DurationCreationError) -> Ordering
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 PartialEq for DurationCreationError
impl PartialEq for DurationCreationError
source§fn eq(&self, other: &DurationCreationError) -> bool
fn eq(&self, other: &DurationCreationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DurationCreationError
impl PartialOrd for DurationCreationError
source§fn partial_cmp(&self, other: &DurationCreationError) -> Option<Ordering>
fn partial_cmp(&self, other: &DurationCreationError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DurationCreationError
impl Eq for DurationCreationError
impl StructuralPartialEq for DurationCreationError
Auto Trait Implementations§
impl Freeze for DurationCreationError
impl RefUnwindSafe for DurationCreationError
impl Send for DurationCreationError
impl Sync for DurationCreationError
impl Unpin for DurationCreationError
impl UnwindSafe for DurationCreationError
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<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