[−][src]Trait expectest::core::Matcher
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 BeFalse
[src]
fn failure_message(&self, join: Join, _: &bool) -> String
[src]
fn matches(&self, actual: &bool) -> bool
[src]
impl Matcher<bool, ()> for BeTrue
[src]
fn failure_message(&self, join: Join, _: &bool) -> String
[src]
fn matches(&self, actual: &bool) -> bool
[src]
impl<A> Matcher<Option<A>, ()> for BeNone where
A: Debug,
[src]
A: Debug,
fn failure_message(&self, join: Join, actual: &Option<A>) -> String
[src]
fn matches(&self, actual: &Option<A>) -> bool
[src]
impl<A> Matcher<Option<A>, ()> for BeSome where
A: Debug,
[src]
A: Debug,
fn failure_message(&self, join: Join, actual: &Option<A>) -> String
[src]
fn matches(&self, actual: &Option<A>) -> bool
[src]
impl<A, E> Matcher<A, E> for BeEqualTo<E> where
A: PartialEq<E> + Debug,
E: Debug,
[src]
A: PartialEq<E> + Debug,
E: Debug,
fn failure_message(&self, join: Join, actual: &A) -> String
[src]
fn matches(&self, actual: &A) -> bool
[src]
impl<A, E> Matcher<A, E> for PartialOrder<E> where
A: PartialOrd<E> + Debug,
E: Debug,
[src]
A: PartialOrd<E> + Debug,
E: Debug,
fn failure_message(&self, join: Join, actual: &A) -> String
[src]
fn matches(&self, actual: &A) -> bool
[src]
impl<A, R> Matcher<A, ()> for BeWithinRange<R, A> where
A: PartialOrd<A> + Debug,
R: RangeBounds<A> + Debug,
[src]
A: PartialOrd<A> + Debug,
R: RangeBounds<A> + Debug,
fn failure_message(&self, join: Join, actual: &A) -> String
[src]
fn matches(&self, actual: &A) -> bool
[src]
impl<A, T> Matcher<Result<A, T>, ()> for BeOk where
A: Debug,
T: Debug,
[src]
A: Debug,
T: Debug,
fn failure_message(&self, join: Join, actual: &Result<A, T>) -> String
[src]
fn matches(&self, actual: &Result<A, T>) -> bool
[src]
impl<A, T> Matcher<Result<T, A>, ()> for BeErr where
A: Debug,
T: Debug,
[src]
A: Debug,
T: Debug,
fn failure_message(&self, join: Join, actual: &Result<T, A>) -> String
[src]
fn matches(&self, actual: &Result<T, A>) -> bool
[src]
impl<A, T> Matcher<A, ()> for BeEmpty where
A: Iterator<Item = T> + Clone,
[src]
A: Iterator<Item = T> + Clone,
fn failure_message(&self, join: Join, actual: &A) -> String
[src]
fn matches(&self, actual: &A) -> bool
[src]
impl<A, T> Matcher<A, ()> for HaveCount where
A: Iterator<Item = T> + Clone,
[src]
A: Iterator<Item = T> + Clone,
fn failure_message(&self, join: Join, actual: &A) -> String
[src]
fn matches(&self, actual: &A) -> bool
[src]
impl<E> Matcher<E, E> for BeCloseTo<E> where
E: Float + Debug,
[src]
E: Float + Debug,