[][src]Struct hamcrest2::matchers::close_to::CloseTo

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: Float + Zero + Debug> Matcher<T> for CloseTo<T>[src]

impl<T: Debug> Display for CloseTo<T>[src]

Auto Trait Implementations

impl<T> Send for CloseTo<T> where
    T: Send

impl<T> Sync for CloseTo<T> where
    T: Sync

impl<T> Unpin for CloseTo<T> where
    T: Unpin

impl<T> UnwindSafe for CloseTo<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for CloseTo<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]