pub struct EqMatcher<T> { /* private fields */ }
Expand description
A matcher which matches a value equal to expected
.
See eq
.
Trait Implementations§
Source§impl<T: Debug, A: Debug + Copy + PartialEq<T>> Matcher<A> for EqMatcher<T>
impl<T: Debug, A: Debug + Copy + PartialEq<T>> Matcher<A> for EqMatcher<T>
Source§fn matches(&self, actual: A) -> MatcherResult
fn matches(&self, actual: A) -> MatcherResult
Returns whether the condition matches the datum
actual
. Read moreSource§fn describe(&self, matcher_result: MatcherResult) -> Description
fn describe(&self, matcher_result: MatcherResult) -> Description
Returns a description of
self
or a negative description if
matcher_result
is DoesNotMatch
. Read moreSource§fn explain_match(&self, actual: A) -> Description
fn explain_match(&self, actual: A) -> Description
Auto Trait Implementations§
impl<T> Freeze for EqMatcher<T>where
T: Freeze,
impl<T> RefUnwindSafe for EqMatcher<T>where
T: RefUnwindSafe,
impl<T> Send for EqMatcher<T>where
T: Send,
impl<T> Sync for EqMatcher<T>where
T: Sync,
impl<T> Unpin for EqMatcher<T>where
T: Unpin,
impl<T> UnwindSafe for EqMatcher<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<ExpectedT, MatcherT> StrMatcherConfigurator<ExpectedT> for MatcherTwhere
MatcherT: Into<StrMatcher<ExpectedT>>,
impl<ExpectedT, MatcherT> StrMatcherConfigurator<ExpectedT> for MatcherTwhere
MatcherT: Into<StrMatcher<ExpectedT>>,
Source§fn ignoring_leading_whitespace(self) -> StrMatcher<ExpectedT>
fn ignoring_leading_whitespace(self) -> StrMatcher<ExpectedT>
Configures the matcher to ignore any leading whitespace in either the
actual or the expected value. Read more
Source§fn ignoring_trailing_whitespace(self) -> StrMatcher<ExpectedT>
fn ignoring_trailing_whitespace(self) -> StrMatcher<ExpectedT>
Configures the matcher to ignore any trailing whitespace in either the
actual or the expected value. Read more
Source§fn ignoring_outer_whitespace(self) -> StrMatcher<ExpectedT>
fn ignoring_outer_whitespace(self) -> StrMatcher<ExpectedT>
Configures the matcher to ignore both leading and trailing whitespace in
either the actual or the expected value. Read more
Source§fn ignoring_ascii_case(self) -> StrMatcher<ExpectedT>
fn ignoring_ascii_case(self) -> StrMatcher<ExpectedT>
Configures the matcher to ignore ASCII case when comparing values. Read more
Source§fn ignoring_unicode_case(self) -> StrMatcher<ExpectedT>
fn ignoring_unicode_case(self) -> StrMatcher<ExpectedT>
Configures the matcher to ignore Unicode case when comparing values. Read more