pub struct InvalidNumber<T>(pub T);
Expand description
Invalid number error.
The inner value is the data failed to be parsed.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T> Clone for InvalidNumber<T>where
T: Clone,
impl<T> Clone for InvalidNumber<T>where
T: Clone,
Source§fn clone(&self) -> InvalidNumber<T>
fn clone(&self) -> InvalidNumber<T>
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 moreSource§impl<T> Debug for InvalidNumber<T>where
T: Debug,
impl<T> Debug for InvalidNumber<T>where
T: Debug,
Source§impl<T> Display for InvalidNumber<T>where
T: Display,
impl<T> Display for InvalidNumber<T>where
T: Display,
Source§impl<T> Error for InvalidNumber<T>
impl<T> Error for InvalidNumber<T>
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<T> Copy for InvalidNumber<T>where
T: Copy,
Auto Trait Implementations§
impl<T> Freeze for InvalidNumber<T>where
T: Freeze,
impl<T> RefUnwindSafe for InvalidNumber<T>where
T: RefUnwindSafe,
impl<T> Send for InvalidNumber<T>where
T: Send,
impl<T> Sync for InvalidNumber<T>where
T: Sync,
impl<T> Unpin for InvalidNumber<T>where
T: Unpin,
impl<T> UnwindSafe for InvalidNumber<T>where
T: 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