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 PartialEq<ParseDurationError> for ParseDurationError
impl PartialEq<ParseDurationError> 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 StructuralEq for ParseDurationError
impl StructuralPartialEq for ParseDurationError
Auto Trait Implementations§
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
source§impl<T, S> StateClone<S> for Twhere
T: Clone,
impl<T, S> StateClone<S> for Twhere T: Clone,
source§unsafe fn clone_state(&self, _cloned_state_api: &S) -> T
unsafe fn clone_state(&self, _cloned_state_api: &S) -> T
Make a clone of the type while using the
cloned_state_api
. Read more