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]

[src]

Formats the value using the given formatter. Read more

impl<T: Float + Zero + Debug> Matcher<T> for CloseTo<T>
[src]

[src]