pub trait ArrayAssertions<T: Debug> {
// Required methods
fn contains_exactly<E: AsRef<[T]>>(self, expected: E) -> Self
where T: PartialEq;
fn contains_exactly_in_any_order<E: AsRef<[T]>>(self, expected: E) -> Self
where T: PartialEq;
}Required Methods§
fn contains_exactly<E: AsRef<[T]>>(self, expected: E) -> Selfwhere
T: PartialEq,
fn contains_exactly_in_any_order<E: AsRef<[T]>>(self, expected: E) -> Selfwhere
T: PartialEq,
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§
impl<T: Debug, const N: usize, M: Mode> ArrayAssertions<T> for AssertThat<'_, [T; N], M>
Assertions for generic arrays.