pub struct NumberOutOfBoundsError<N: Display> { /* private fields */ }Expand description
Error that occurs when trying to create a bounded type with a value that is out of bounds.
Trait Implementations§
Source§impl<N> Display for NumberOutOfBoundsError<N>
impl<N> Display for NumberOutOfBoundsError<N>
Source§impl<N: Display> Error for NumberOutOfBoundsError<N>
impl<N: Display> Error for NumberOutOfBoundsError<N>
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()
Source§impl<N: Display> From<NumberOutOfBoundsError<N>> for ParseBoundedNumberError<N>
impl<N: Display> From<NumberOutOfBoundsError<N>> for ParseBoundedNumberError<N>
Source§fn from(source: NumberOutOfBoundsError<N>) -> Self
fn from(source: NumberOutOfBoundsError<N>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<N> Freeze for NumberOutOfBoundsError<N>where
N: Freeze,
impl<N> RefUnwindSafe for NumberOutOfBoundsError<N>where
N: RefUnwindSafe,
impl<N> Send for NumberOutOfBoundsError<N>where
N: Send,
impl<N> Sync for NumberOutOfBoundsError<N>where
N: Sync,
impl<N> Unpin for NumberOutOfBoundsError<N>where
N: Unpin,
impl<N> UnsafeUnpin for NumberOutOfBoundsError<N>where
N: UnsafeUnpin,
impl<N> UnwindSafe for NumberOutOfBoundsError<N>where
N: UnwindSafe,
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