Trait oxidize::matchers::Matcher
[−]
[src]
pub trait Matcher<Lhs> { fn matches(&self, lhs: &Lhs) -> bool; fn fail_msg(&self, lhs: &Lhs) -> String; fn negated_fail_msg(&self, lhs: &Lhs) -> String; }
Required Methods
fn matches(&self, lhs: &Lhs) -> bool
fn fail_msg(&self, lhs: &Lhs) -> String
fn negated_fail_msg(&self, lhs: &Lhs) -> String
Implementors
impl<T: Debug + PartialEq> Matcher<Vec<T>> for Contains<T>
impl Matcher<String> for Contains<char>
impl Matcher<String> for Contains<String>
impl<'a> Matcher<String> for Contains<&'a str>
impl<'a> Matcher<&'a str> for Contains<String>
impl<'a, 'b> Matcher<&'a str> for Contains<&'b str>
impl<Lhs: Debug + PartialOrd> Matcher<Lhs> for LessThan<Lhs>
impl<Lhs: Debug + PartialOrd> Matcher<Lhs> for GreaterThan<Lhs>
impl<Lhs: Debug + PartialEq> Matcher<Lhs> for Equal<Lhs>
impl<Lhs: Debug + Collection> Matcher<Lhs> for Empty
impl<T: Debug> Matcher<Option<T>> for Nothing
impl<T: Debug> Matcher<Option<T>> for Something
impl Matcher<bool> for BeTrue
impl Matcher<bool> for BeFalse
impl<'a> Matcher<&'a str> for MatchesRegex<'a>
impl<'a> Matcher<String> for MatchesRegex<'a>