Trait expect::Assertion [] [src]

pub trait Assertion<T: ?Sized>: Sized {
    fn assert(self, _: &T) { ... }
}

An assertion that can be applied to a type.

Provided Methods

Assert some property about T.

Panics

This method SHOULD panic if the property is not fulfilled.

Implementors