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<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 Matcher<bool, ()> for BeTrue
impl Matcher<bool, ()> for BeFalse
impl<A> Matcher<Option<A>, ()> for BeSome where A: Debug
impl<A> Matcher<Option<A>, ()> for BeNone where A: 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
impl<E> Matcher<E, E> for BeCloseTo<E> where E: Float + Debug
impl<A, T> Matcher<A, ()> for BeEmpty where A: Iterator<Item=T> + Clone
impl<A, T> Matcher<A, ()> for HaveCount where A: Iterator<Item=T> + Clone