Struct result_float::NaN [−][src]
pub struct NaN;
An error which is returned when an operation returns NaN.
use std::f64::NAN; use result_float::{rf, NaN}; assert_eq!(rf(NAN), Err(NaN));
Trait Implementations
impl Copy for NaN
[src]
impl Copy for NaN
impl Clone for NaN
[src]
impl Clone for NaN
fn clone(&self) -> NaN
[src]
fn clone(&self) -> NaN
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for NaN
[src]
impl Debug for NaN
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for NaN
[src]
impl PartialEq for NaN
fn eq(&self, other: &NaN) -> bool
[src]
fn eq(&self, other: &NaN) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for NaN
[src]
impl Eq for NaN