pub struct ContainerEqMatcher<T: Debug> { /* private fields */ }

Trait Implementations§

source§

impl<T: PartialEq + Debug, const N: usize> Matcher<[T]> for ContainerEqMatcher<[T; N]>

source§

fn matches(&self, actual: &[T]) -> MatcherResult

Returns whether the condition matches the datum actual. Read more
source§

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 more
source§

fn describe(&self, matcher_result: MatcherResult) -> String

Returns a description of self or a negative description if matcher_result is DoesNotMatch. Read more
source§

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

Returns whether the condition matches the datum actual. Read more
source§

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 more
source§

fn describe(&self, matcher_result: MatcherResult) -> String

Returns a description of self or a negative description if matcher_result is DoesNotMatch. Read more
source§

impl<const N: usize> Matcher<Vec<String, Global>> for ContainerEqMatcher<[&str; N]>

source§

fn matches(&self, actual: &Vec<String>) -> MatcherResult

Returns whether the condition matches the datum actual. Read more
source§

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 more
source§

fn describe(&self, matcher_result: MatcherResult) -> String

Returns a description of self or a negative description if matcher_result is DoesNotMatch. Read more
source§

impl<T: PartialEq + Debug, const N: usize> Matcher<Vec<T, Global>> for ContainerEqMatcher<[T; N]>

source§

fn matches(&self, actual: &Vec<T>) -> MatcherResult

Returns whether the condition matches the datum actual. Read more
source§

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
source§

fn describe(&self, matcher_result: MatcherResult) -> String

Returns a description of self or a negative description if matcher_result is DoesNotMatch. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for ContainerEqMatcher<T>where
    T: RefUnwindSafe,

§

impl<T> Send for ContainerEqMatcher<T>where
    T: Send,

§

impl<T> Sync for ContainerEqMatcher<T>where
    T: Sync,

§

impl<T> Unpin for ContainerEqMatcher<T>where
    T: Unpin,

§

impl<T> UnwindSafe for ContainerEqMatcher<T>where
    T: UnwindSafe,

Blanket Implementations§

source§

impl<T, M> AndMatcherExt<T> for Mwhere
    T: Debug,
    M: Matcher<T>,

source§

fn and<Right: Matcher<T>>(self, right: Right) -> ConjunctionMatcher<Self, Right>where
    Self: Sized,

Constructs a matcher that matches both self and right. Read more
source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, M> OrMatcherExt<T> for Mwhere
    T: Debug,
    M: Matcher<T>,

source§

fn or<Right: Matcher<T>>(self, right: Right) -> DisjunctionMatcher<Self, Right>where
    Self: Sized,

Constructs a matcher that matches when at least one of self or right matches the input. Read more
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.