pub struct LazyAssertion<M: LazyMatcher> { /* private fields */ }
Implementations§
Source§impl<M: LazyMatcher> LazyAssertion<M>
impl<M: LazyMatcher> LazyAssertion<M>
Sourcepub fn and<F, R>(self, op: F) -> LazyAssertion<R>
pub fn and<F, R>(self, op: F) -> LazyAssertion<R>
Not intended for direct use.
Use must_be_ok_and / must_be_err_and / must_be_some_and instead.
pub fn or<F>(self, f: F)
Sourcepub fn into_result(self) -> Result<M::Ret, Error>
pub 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§
Source§impl<M: LazyMatcher> Drop for LazyAssertion<M>
impl<M: LazyMatcher> Drop for LazyAssertion<M>
Source§impl<M: LazyMatcher> From<M> for LazyAssertion<M>
impl<M: LazyMatcher> From<M> for LazyAssertion<M>
Source§impl<Ret> From<Ret> for LazyAssertion<SimpleMatcher<Ret>>
impl<Ret> From<Ret> for LazyAssertion<SimpleMatcher<Ret>>
Source§impl<Ret> FromError for LazyAssertion<SimpleMatcher<Ret>>
impl<Ret> FromError for LazyAssertion<SimpleMatcher<Ret>>
Source§impl<M: LazyMatcher> Mutator<M> for LazyAssertion<M>
impl<M: LazyMatcher> Mutator<M> for LazyAssertion<M>
Auto Trait Implementations§
impl<M> Freeze for LazyAssertion<M>where
M: Freeze,
impl<M> RefUnwindSafe for LazyAssertion<M>where
M: RefUnwindSafe,
impl<M> Send for LazyAssertion<M>where
M: Send,
impl<M> Sync for LazyAssertion<M>where
M: Sync,
impl<M> Unpin for LazyAssertion<M>where
M: Unpin,
impl<M> UnwindSafe for LazyAssertion<M>where
M: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more