Struct must::lazy::LazyAssertion
[−]
[src]
pub struct LazyAssertion<M: LazyMatcher> { /* fields omitted */ }
Methods
impl<M: LazyMatcher> LazyAssertion<M>
[src]
fn and<F, R>(self, op: F) -> LazyAssertion<R> where
F: FnOnce(M::Ret) -> LazyAssertion<R>,
R: LazyMatcher,
F: FnOnce(M::Ret) -> LazyAssertion<R>,
R: LazyMatcher,
Not intended for direct use.
Use must_be_ok_and / must_be_err_and / must_be_some_and instead.
fn or<F>(self, f: F) where
F: FnOnce(&Error),
F: FnOnce(&Error),
fn take(self) -> M::Ret
take or panic
fn into_result(self) -> Result<M::Ret, Error>
Not intended for direct use in testing, but exported to help extending must.
Panics if called twice.
Trait Implementations
impl<Ret> From<Ret> for LazyAssertion<SimpleMatcher<Ret>>
[src]
fn from(ret: Ret) -> Self
Performs the conversion.
impl<Ret> FromError for LazyAssertion<SimpleMatcher<Ret>>
[src]
impl<M: LazyMatcher> Mutator<M> for LazyAssertion<M>
[src]
impl<M: LazyMatcher> Drop for LazyAssertion<M>
[src]
impl<M: LazyMatcher> From<M> for LazyAssertion<M>
[src]
fn from(matcher: M) -> Self
Creates a new lazy assertion with a given lazy matcher.