[][src]Trait hamcrest2::core::Matcher

pub trait Matcher<T>: Display {
    fn matches(&self, actual: T) -> MatchResult;
}

Required methods

fn matches(&self, actual: T) -> MatchResult

Loading content...

Implementations on Foreign Types

impl Matcher<bool> for bool[src]

Loading content...

Implementors

impl<'a> Matcher<&'a Path> for PathExists[src]

impl<'a> Matcher<&'a PathBuf> for PathExists[src]

impl<'a, T> Matcher<&'a [T]> for OfLen[src]

impl<'a, T: Debug + PartialEq + Clone> Matcher<&'a [T]> for Contains<T>[src]

impl<'a, T: Debug> Matcher<&'a [T]> for Empty[src]

impl<B: Borrow<str>> Matcher<B> for MatchesRegex[src]

impl<T> Matcher<Option<T>> for Has<T> where
    T: Debug + PartialEq
[src]

impl<T> Matcher<T> for Anything[src]

impl<T, E> Matcher<Result<T, E>> for Has<T> where
    T: Debug + PartialEq,
    E: Debug
[src]

impl<T, E, B: Borrow<Result<T, E>>> Matcher<B> for IsErr<T, E> where
    T: Debug,
    E: Debug
[src]

impl<T, E, B: Borrow<Result<T, E>>> Matcher<B> for IsOk<T, E> where
    T: Debug,
    E: Debug
[src]

impl<T, M0, M1> Matcher<T> for All<T, (M0, M1)> where
    T: Clone,
    M0: Matcher<T>,
    M1: Matcher<T>, 
[src]

impl<T, M0, M1> Matcher<T> for Any<T, (M0, M1)> where
    T: Clone,
    M0: Matcher<T>,
    M1: Matcher<T>, 
[src]

impl<T, M0, M1, M2> Matcher<T> for All<T, (M0, M1, M2)> where
    T: Clone,
    M0: Matcher<T>,
    M1: Matcher<T>,
    M2: Matcher<T>, 
[src]

impl<T, M0, M1, M2> Matcher<T> for Any<T, (M0, M1, M2)> where
    T: Clone,
    M0: Matcher<T>,
    M1: Matcher<T>,
    M2: Matcher<T>, 
[src]

impl<T, M0, M1, M2, M3> Matcher<T> for All<T, (M0, M1, M2, M3)> where
    T: Clone,
    M0: Matcher<T>,
    M1: Matcher<T>,
    M2: Matcher<T>,
    M3: Matcher<T>, 
[src]

impl<T, M0, M1, M2, M3> Matcher<T> for Any<T, (M0, M1, M2, M3)> where
    T: Clone,
    M0: Matcher<T>,
    M1: Matcher<T>,
    M2: Matcher<T>,
    M3: Matcher<T>, 
[src]

impl<T, M0, M1, M2, M3, M4> Matcher<T> for All<T, (M0, M1, M2, M3, M4)> where
    T: Clone,
    M0: Matcher<T>,
    M1: Matcher<T>,
    M2: Matcher<T>,
    M3: Matcher<T>,
    M4: Matcher<T>, 
[src]

impl<T, M0, M1, M2, M3, M4> Matcher<T> for Any<T, (M0, M1, M2, M3, M4)> where
    T: Clone,
    M0: Matcher<T>,
    M1: Matcher<T>,
    M2: Matcher<T>,
    M3: Matcher<T>,
    M4: Matcher<T>, 
[src]

impl<T, M0, M1, M2, M3, M4, M5> Matcher<T> for All<T, (M0, M1, M2, M3, M4, M5)> where
    T: Clone,
    M0: Matcher<T>,
    M1: Matcher<T>,
    M2: Matcher<T>,
    M3: Matcher<T>,
    M4: Matcher<T>,
    M5: Matcher<T>, 
[src]

impl<T, M0, M1, M2, M3, M4, M5> Matcher<T> for Any<T, (M0, M1, M2, M3, M4, M5)> where
    T: Clone,
    M0: Matcher<T>,
    M1: Matcher<T>,
    M2: Matcher<T>,
    M3: Matcher<T>,
    M4: Matcher<T>,
    M5: Matcher<T>, 
[src]

impl<T, M: Matcher<T>> Matcher<T> for Is<T, M>[src]

impl<T, M: Matcher<T>> Matcher<T> for IsNot<T, M>[src]

impl<T, U> Matcher<T> for EqualTo<U> where
    U: PartialEq<T> + Debug,
    T: Debug
[src]

impl<T: 'static> Matcher<T> for TypeOf[src]

impl<T: PartialOrd + Debug, B: Borrow<T>> Matcher<B> for ComparedTo<T>[src]

impl<T: Debug, B: Borrow<Option<T>>> Matcher<B> for IsNone<T>[src]

impl<T: Debug, B: Borrow<Option<T>>> Matcher<B> for IsSome<T>[src]

impl<T: Float + Zero + Debug> Matcher<T> for CloseTo<T>[src]

Loading content...