Enum ordered_float::ParseNotNanError
source · 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)>
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>
source§fn eq(&self, other: &ParseNotNanError<E>) -> bool
fn eq(&self, other: &ParseNotNanError<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<E: Copy> Copy for ParseNotNanError<E>
impl<E: Eq> Eq for ParseNotNanError<E>
impl<E> StructuralEq for ParseNotNanError<E>
impl<E> StructuralPartialEq for ParseNotNanError<E>
Auto Trait Implementations§
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