Skip to main content

AssertAll

Trait AssertAll 

Source
pub trait AssertAll {
    type Output: Assertion;

    // Required method
    fn assert_all(self) -> CollectedAssertion<Self::Output>
       where Self: Sized;
}
Expand description

Extension trait, blanked implemented for Iterators of Assertions.

Adds the assert_all method, which calls the collect method (with fewer generics and turbofish).

Required Associated Types§

Required Methods§

Source

fn assert_all(self) -> CollectedAssertion<Self::Output>
where Self: Sized,

Collect this iterator of Assertions into a CollectedAssertion.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<I, A> AssertAll for I
where I: IntoIterator<Item = A>, A: Assertion,