Trait expectest::core::Matcher
[−]
[src]
pub trait Matcher<A, E> {
fn failure_message(&self, join: Join, actual: &A) -> String;
fn matches(&self, actual: &A) -> bool;
}A Matcher trait.
Required Methods
fn failure_message(&self, join: Join, actual: &A) -> String
Returns a failure message.
fn matches(&self, actual: &A) -> bool
Checks if an actual value matches an expected value.
Implementors
impl Matcher<bool, ()> for BeTrueimpl Matcher<bool, ()> for BeFalseimpl<A, T> Matcher<A, ()> for HaveCount where
A: Iterator<Item = T> + Clone,impl<A, T> Matcher<A, ()> for BeEmpty where
A: Iterator<Item = T> + Clone,impl<E> Matcher<E, E> for BeCloseTo<E> where
E: Float + Debug,impl<A> Matcher<Option<A>, ()> for BeSome where
A: Debug,impl<A> Matcher<Option<A>, ()> for BeNone where
A: Debug,impl<A, E> Matcher<A, E> for BeEqualTo<E> where
A: PartialEq<E> + Debug,
E: Debug,impl<A, E> Matcher<A, E> for PartialOrder<E> where
A: PartialOrd<E> + Debug,
E: Debug,impl<A, T> Matcher<Result<A, T>, ()> for BeOk where
A: Debug,
T: Debug,impl<A, T> Matcher<Result<T, A>, ()> for BeErr where
A: Debug,
T: Debug,