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 more