pub enum MeasureError {
NegativeValue {
value: f32,
},
NonFiniteValue {
value: f32,
},
}Expand description
Errors from constructing measured quantities.
Variants§
NegativeValue
Returned when a value is negative.
NonFiniteValue
Returned when a value is NaN or infinite.
Trait Implementations§
Source§impl Debug for MeasureError
impl Debug for MeasureError
Source§impl Display for MeasureError
impl Display for MeasureError
Source§impl Error for MeasureError
impl Error for MeasureError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for MeasureError
impl RefUnwindSafe for MeasureError
impl Send for MeasureError
impl Sync for MeasureError
impl Unpin for MeasureError
impl UnsafeUnpin for MeasureError
impl UnwindSafe for MeasureError
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