Trait expect::Expect
[−]
[src]
pub trait Expect { fn expect<A: Assertion<Self>>(self, assertion: A) -> Self
where
Self: Sized, { ... } fn expect_ref<A: Assertion<Self>>(&self, assertion: A) -> &Self { ... } }
Extension trait for applying assertions.
Provided Methods
fn expect<A: Assertion<Self>>(self, assertion: A) -> Self where
Self: Sized,
Self: Sized,
Check an assertion on Self.
fn expect_ref<A: Assertion<Self>>(&self, assertion: A) -> &Self
Check an assertion on a reference to Self.
Implementors
impl<E> Expect for E