[][src]Trait expectest::core::Matcher

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.

Loading content...

Implementors

impl Matcher<bool, ()> for BeFalse[src]

impl Matcher<bool, ()> for BeTrue[src]

impl<A> Matcher<Option<A>, ()> for BeNone where
    A: Debug
[src]

impl<A> Matcher<Option<A>, ()> for BeSome where
    A: Debug
[src]

impl<A, E> Matcher<A, E> for BeEqualTo<E> where
    A: PartialEq<E> + Debug,
    E: Debug
[src]

impl<A, E> Matcher<A, E> for PartialOrder<E> where
    A: PartialOrd<E> + Debug,
    E: Debug
[src]

impl<A, R> Matcher<A, ()> for BeWithinRange<R, A> where
    A: PartialOrd<A> + Debug,
    R: RangeBounds<A> + Debug
[src]

impl<A, T> Matcher<Result<A, T>, ()> for BeOk where
    A: Debug,
    T: Debug
[src]

impl<A, T> Matcher<Result<T, A>, ()> for BeErr where
    A: Debug,
    T: Debug
[src]

impl<A, T> Matcher<A, ()> for BeEmpty where
    A: Iterator<Item = T> + Clone
[src]

impl<A, T> Matcher<A, ()> for HaveCount where
    A: Iterator<Item = T> + Clone
[src]

impl<E> Matcher<E, E> for BeCloseTo<E> where
    E: Float + Debug
[src]

Loading content...