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§
fn contains<E>(self, expected: E) -> Self
fn contains_exactly<E>(self, expected: impl AsRef<[E]>) -> Self
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.