pub struct OutOfRange {
pub value: f64,
pub range: &'static str,
}Expand description
Error returned by unit constructors when the input is out of range.
Fields§
§value: f64The offending value (widened to f64 for uniform display).
range: &'static strHuman description of the valid range.
Trait Implementations§
Source§impl Clone for OutOfRange
impl Clone for OutOfRange
Source§fn clone(&self) -> OutOfRange
fn clone(&self) -> OutOfRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OutOfRange
impl Debug for OutOfRange
Source§impl Display for OutOfRange
impl Display for OutOfRange
Source§impl Error for OutOfRange
impl Error for OutOfRange
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 OutOfRange
impl RefUnwindSafe for OutOfRange
impl Send for OutOfRange
impl Sync for OutOfRange
impl Unpin for OutOfRange
impl UnsafeUnpin for OutOfRange
impl UnwindSafe for OutOfRange
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