Enum RealError
pub enum RealError {
NonFiniteValue {
name: &'static str,
value: f64,
},
NonFiniteTolerance(f64),
NegativeTolerance(f64),
InvalidInterval {
min: f64,
max: f64,
},
}Expand description
Errors returned by validated real-number helpers.
Variants§
NonFiniteValue
A real-number component must be finite.
NonFiniteTolerance(f64)
A comparison tolerance must be finite.
NegativeTolerance(f64)
A comparison tolerance must not be negative.
InvalidInterval
An interval must have min <= max.
Trait Implementations§
§impl Error for RealError
impl Error for RealError
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()
impl Copy for RealError
impl StructuralPartialEq for RealError
Auto Trait Implementations§
impl Freeze for RealError
impl RefUnwindSafe for RealError
impl Send for RealError
impl Sync for RealError
impl Unpin for RealError
impl UnsafeUnpin for RealError
impl UnwindSafe for RealError
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