VecAssertions

Trait VecAssertions 

Source
pub trait VecAssertions<'t, T: Debug> {
    // Required methods
    fn contains<E>(self, expected: E) -> Self
       where E: Debug,
             T: AssertrPartialEq<E> + Debug;
    fn contains_exactly<E>(self, expected: impl AsRef<[E]>) -> Self
       where E: Debug + 't,
             T: AssertrPartialEq<E> + Debug;
    fn contains_exactly_matching_in_any_order<P>(
        self,
        expected: impl AsRef<[P]>,
    ) -> Self
       where P: Fn(&T) -> bool;
}

Required Methods§

Source

fn contains<E>(self, expected: E) -> Self
where E: Debug, T: AssertrPartialEq<E> + Debug,

Source

fn contains_exactly<E>(self, expected: impl AsRef<[E]>) -> Self
where E: Debug + 't, T: AssertrPartialEq<E> + Debug,

Source

fn contains_exactly_matching_in_any_order<P>( self, expected: impl AsRef<[P]>, ) -> Self
where P: Fn(&T) -> bool,

[P] - Predicate

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'t, T: Debug, M: Mode> VecAssertions<'t, T> for AssertThat<'t, Vec<T>, M>