pub enum ParseDurationError {
MissingUnit,
FailedParsingNumber,
InvalidUnit(String),
}
Variants§
Trait Implementations§
source§impl Clone for ParseDurationError
impl Clone for ParseDurationError
source§fn clone(&self) -> ParseDurationError
fn clone(&self) -> ParseDurationError
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 ParseDurationError
impl Debug for ParseDurationError
source§impl Display for ParseDurationError
impl Display for ParseDurationError
source§impl Error for ParseDurationError
impl Error for ParseDurationError
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 From<ParseDurationError> for JsonError
impl From<ParseDurationError> for JsonError
source§fn from(source: ParseDurationError) -> Self
fn from(source: ParseDurationError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ParseDurationError
impl PartialEq for ParseDurationError
source§fn eq(&self, other: &ParseDurationError) -> bool
fn eq(&self, other: &ParseDurationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParseDurationError
impl StructuralPartialEq for ParseDurationError
Auto Trait Implementations§
impl Freeze for ParseDurationError
impl RefUnwindSafe for ParseDurationError
impl Send for ParseDurationError
impl Sync for ParseDurationError
impl Unpin for ParseDurationError
impl UnwindSafe for ParseDurationError
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