Enum ambient_time::DurationParseError
source · pub enum DurationParseError {
MissingIntegral(String),
DoubleSuffix,
DoubleIntegral,
MalformedIntegral(String),
MalformedSuffix(String),
}
Variants§
MissingIntegral(String)
DoubleSuffix
DoubleIntegral
MalformedIntegral(String)
MalformedSuffix(String)
Trait Implementations§
source§impl Clone for DurationParseError
impl Clone for DurationParseError
source§fn clone(&self) -> DurationParseError
fn clone(&self) -> DurationParseError
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 DurationParseError
impl Debug for DurationParseError
source§impl Display for DurationParseError
impl Display for DurationParseError
source§impl Error for DurationParseError
impl Error for DurationParseError
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 DurationParseError
impl Hash for DurationParseError
source§impl Ord for DurationParseError
impl Ord for DurationParseError
source§fn cmp(&self, other: &DurationParseError) -> Ordering
fn cmp(&self, other: &DurationParseError) -> 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 DurationParseError
impl PartialEq for DurationParseError
source§fn eq(&self, other: &DurationParseError) -> bool
fn eq(&self, other: &DurationParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DurationParseError
impl PartialOrd for DurationParseError
source§fn partial_cmp(&self, other: &DurationParseError) -> Option<Ordering>
fn partial_cmp(&self, other: &DurationParseError) -> 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 Eq for DurationParseError
impl StructuralEq for DurationParseError
impl StructuralPartialEq for DurationParseError
Auto Trait Implementations§
impl RefUnwindSafe for DurationParseError
impl Send for DurationParseError
impl Sync for DurationParseError
impl Unpin for DurationParseError
impl UnwindSafe for DurationParseError
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