pub enum ParseNotNanError<E> {
ParseFloatError(E),
IsNaN,
}
Expand description
An error indicating a parse error from a string for NotNan
.
Variants§
ParseFloatError(E)
A plain parse error from the underlying float type.
IsNaN
The parsed float value resulted in a NaN.
Trait Implementations§
Source§impl<E: Clone> Clone for ParseNotNanError<E>
impl<E: Clone> Clone for ParseNotNanError<E>
Source§fn clone(&self) -> ParseNotNanError<E>
fn clone(&self) -> ParseNotNanError<E>
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<E: Debug> Debug for ParseNotNanError<E>
impl<E: Debug> Debug for ParseNotNanError<E>
Source§impl<E: Display> Display for ParseNotNanError<E>
impl<E: Display> Display for ParseNotNanError<E>
Source§impl<E: Debug + Error + 'static> Error for ParseNotNanError<E>
impl<E: Debug + Error + 'static> Error for ParseNotNanError<E>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl<E: PartialEq> PartialEq for ParseNotNanError<E>
impl<E: PartialEq> PartialEq for ParseNotNanError<E>
impl<E: Copy> Copy for ParseNotNanError<E>
impl<E: Eq> Eq for ParseNotNanError<E>
impl<E> StructuralPartialEq for ParseNotNanError<E>
Auto Trait Implementations§
impl<E> Freeze for ParseNotNanError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ParseNotNanError<E>where
E: RefUnwindSafe,
impl<E> Send for ParseNotNanError<E>where
E: Send,
impl<E> Sync for ParseNotNanError<E>where
E: Sync,
impl<E> Unpin for ParseNotNanError<E>where
E: Unpin,
impl<E> UnwindSafe for ParseNotNanError<E>where
E: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)