pub trait FloatEquals {
fn float_equals(&self, other: &Self) -> bool;
}Expand description
Helper trait for tests for float comparisons
This trait differs in float’s default PartialEq implementation by considering all NaN values to
be equal.
pub trait FloatEquals {
fn float_equals(&self, other: &Self) -> bool;
}Helper trait for tests for float comparisons
This trait differs in float’s default PartialEq implementation by considering all NaN values to
be equal.