pub struct CollectedAssertion<A: Assertion>(pub Option<A>);Expand description
A group of assertions, where the first one to fail will short-circuit.
This can be created using its FromIterator implementation or the AssertAll extension trait.
Tuple Fields§
§0: Option<A>Trait Implementations§
Source§impl<A: Assertion> Assertion for CollectedAssertion<A>
impl<A: Assertion> Assertion for CollectedAssertion<A>
Source§fn should_fail(self) -> ShouldFail<Self>where
Self: Sized,
fn should_fail(self) -> ShouldFail<Self>where
Self: Sized,
Wrap the assertion in
ShouldFail, inverting its condition.Source§impl<A: Assertion> Debug for CollectedAssertion<A>
impl<A: Assertion> Debug for CollectedAssertion<A>
Source§impl<A: Assertion> Display for CollectedAssertion<A>
impl<A: Assertion> Display for CollectedAssertion<A>
Source§impl<A: Assertion> FromIterator<A> for CollectedAssertion<A>
impl<A: Assertion> FromIterator<A> for CollectedAssertion<A>
Source§fn from_iter<T: IntoIterator<Item = A>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = A>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl<A: Assertion> Termination for CollectedAssertion<A>
Available on crate feature std only.
impl<A: Assertion> Termination for CollectedAssertion<A>
Available on crate feature
std only.Auto Trait Implementations§
impl<A> Freeze for CollectedAssertion<A>where
A: Freeze,
impl<A> RefUnwindSafe for CollectedAssertion<A>where
A: RefUnwindSafe,
impl<A> Send for CollectedAssertion<A>where
A: Send,
impl<A> Sync for CollectedAssertion<A>where
A: Sync,
impl<A> Unpin for CollectedAssertion<A>where
A: Unpin,
impl<A> UnsafeUnpin for CollectedAssertion<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for CollectedAssertion<A>where
A: 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