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<ParseNotNanError<E>> for ParseNotNanError<E>
impl<E: PartialEq> PartialEq<ParseNotNanError<E>> 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 ==
.