Struct delayed_assert::DelayedAssert[][src]

pub struct DelayedAssert { /* fields omitted */ }

A struct for keeping state of delayed asserts.

Implementations

impl DelayedAssert[src]

pub fn new() -> Self[src]

Creates a new holder for delayed asserts.

pub fn expect<T: Truthy + Debug>(&mut self, value: T)[src]

Use just like the assert! macro, adds it to the queue.

pub fn expect_equal<T: PartialEq + Debug>(&mut self, left: T, right: T)[src]

Use just like the assert_eq! macro, adds it to the queue.

pub fn assert_expectations(self)[src]

Run the asserts.

Trait Implementations

impl Debug for DelayedAssert[src]

impl Default for DelayedAssert[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.