Enum uom::si::time::TryFromError
source · pub enum TryFromError {
NegativeDuration,
Overflow,
}
Expand description
An error encountered converting between Time
and Duration
.
Variants§
NegativeDuration
The given time interval was negative, making conversion to a duration nonsensical.
To convert a negative time interval to a duration, first use abs
to make it positive.
Overflow
The given time interval exceeded the maximum size of a Duration
.
Trait Implementations§
source§impl Clone for TryFromError
impl Clone for TryFromError
source§fn clone(&self) -> TryFromError
fn clone(&self) -> TryFromError
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 TryFromError
impl Debug for TryFromError
impl Copy for TryFromError
Auto Trait Implementations§
impl Freeze for TryFromError
impl RefUnwindSafe for TryFromError
impl Send for TryFromError
impl Sync for TryFromError
impl Unpin for TryFromError
impl UnwindSafe for TryFromError
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