Struct hamcrest::matchers::close_to::CloseTo
[−]
[src]
pub struct CloseTo<T> { /* fields omitted */ }
Compares two floating point values for equality.
The comparison is based on a relative error metric and uses special fallbacks for certain edge cases like very small numbers. The exact algorithm is described here.
Trait Implementations
impl<T: Debug> Display for CloseTo<T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more