[][src]Struct expectest::matchers::BeCloseTo

pub struct BeCloseTo<E> { /* fields omitted */ }

A matcher for be_close_to assertions for float numbers.

Methods

impl<E> BeCloseTo<E>[src]

pub fn delta(self, v: E) -> BeCloseTo<E>[src]

Sets new delta value.

Trait Implementations

impl<E> Matcher<E, E> for BeCloseTo<E> where
    E: Float + Debug
[src]

Auto Trait Implementations

impl<E> Send for BeCloseTo<E> where
    E: Send

impl<E> Sync for BeCloseTo<E> where
    E: Sync

impl<E> Unpin for BeCloseTo<E> where
    E: Unpin

impl<E> UnwindSafe for BeCloseTo<E> where
    E: UnwindSafe

impl<E> RefUnwindSafe for BeCloseTo<E> where
    E: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for T[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]