Trait hamcrest::core::Matcher
[−]
[src]
pub trait Matcher<T>: Display { fn matches(&self, actual: T) -> MatchResult; }
Required Methods
fn matches(&self, actual: T) -> MatchResult
Implementors
impl<T: Float + Zero + Debug> Matcher<T> for CloseTo<T>
impl<T: PartialEq + Debug> Matcher<T> for EqualTo<T>
impl<'a> Matcher<&'a PathBuf> for ExistingPath
impl<'a> Matcher<&'a Path> for ExistingPath
impl<T, M: Matcher<T>> Matcher<T> for Is<T, M>
impl<T, M: Matcher<T>> Matcher<T> for IsNot<T, M>
impl<T: Debug> Matcher<Option<T>> for IsNone<T>
impl<'a> Matcher<&'a str> for MatchesRegex
impl<'a, T> Matcher<&'a Vec<T>> for OfLen
impl<'a, T: Debug + PartialEq + Clone> Matcher<&'a Vec<T>> for Contains<T>