pub struct ContainerEqMatcher<T: Debug> { /* private fields */ }Trait Implementations§
source§impl<T: PartialEq + Debug, const N: usize> Matcher<[T]> for ContainerEqMatcher<[T; N]>
impl<T: PartialEq + Debug, const N: usize> Matcher<[T]> for ContainerEqMatcher<[T; N]>
source§fn matches(&self, actual: &[T]) -> MatcherResult
fn matches(&self, actual: &[T]) -> MatcherResult
Returns whether the condition matches the datum
actual. Read moresource§fn explain_match(&self, actual: &[T]) -> MatchExplanation
fn explain_match(&self, actual: &[T]) -> MatchExplanation
Prepares a
MatchExplanation describing how the expected value
encoded in this instance matches or does not match the given value
actual. Read moresource§impl<T: PartialEq + Debug, ContainerT: PartialEq + Debug> Matcher<ContainerT> for ContainerEqMatcher<ContainerT>where
for<'a> &'a ContainerT: IntoIterator<Item = &'a T>,
impl<T: PartialEq + Debug, ContainerT: PartialEq + Debug> Matcher<ContainerT> for ContainerEqMatcher<ContainerT>where
for<'a> &'a ContainerT: IntoIterator<Item = &'a T>,
source§fn matches(&self, actual: &ContainerT) -> MatcherResult
fn matches(&self, actual: &ContainerT) -> MatcherResult
Returns whether the condition matches the datum
actual. Read moresource§fn explain_match(&self, actual: &ContainerT) -> MatchExplanation
fn explain_match(&self, actual: &ContainerT) -> MatchExplanation
Prepares a
MatchExplanation describing how the expected value
encoded in this instance matches or does not match the given value
actual. Read moresource§impl<const N: usize> Matcher<Vec<String, Global>> for ContainerEqMatcher<[&str; N]>
impl<const N: usize> Matcher<Vec<String, Global>> for ContainerEqMatcher<[&str; N]>
source§fn matches(&self, actual: &Vec<String>) -> MatcherResult
fn matches(&self, actual: &Vec<String>) -> MatcherResult
Returns whether the condition matches the datum
actual. Read moresource§fn explain_match(&self, actual: &Vec<String>) -> MatchExplanation
fn explain_match(&self, actual: &Vec<String>) -> MatchExplanation
Prepares a
MatchExplanation describing how the expected value
encoded in this instance matches or does not match the given value
actual. Read moresource§impl<T: PartialEq + Debug, const N: usize> Matcher<Vec<T, Global>> for ContainerEqMatcher<[T; N]>
impl<T: PartialEq + Debug, const N: usize> Matcher<Vec<T, Global>> for ContainerEqMatcher<[T; N]>
source§fn matches(&self, actual: &Vec<T>) -> MatcherResult
fn matches(&self, actual: &Vec<T>) -> MatcherResult
Returns whether the condition matches the datum
actual. Read moresource§fn explain_match(&self, actual: &Vec<T>) -> MatchExplanation
fn explain_match(&self, actual: &Vec<T>) -> MatchExplanation
Prepares a
MatchExplanation describing how the expected value
encoded in this instance matches or does not match the given value
actual. Read more