Struct googletest::matchers::EqMatcher
source · pub struct EqMatcher<A: ?Sized, T> { /* private fields */ }
Expand description
A matcher which matches a value equal to expected
.
See eq
.
Trait Implementations§
source§impl<T: Debug, A: Debug + ?Sized + PartialEq<T>> Matcher for EqMatcher<A, T>
impl<T: Debug, A: Debug + ?Sized + PartialEq<T>> Matcher for EqMatcher<A, 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<A: ?Sized, T> RefUnwindSafe for EqMatcher<A, T>where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<A: ?Sized, T> Send for EqMatcher<A, T>
impl<A: ?Sized, T> Sync for EqMatcher<A, T>
impl<A: ?Sized, T> Unpin for EqMatcher<A, T>
impl<A: ?Sized, T> UnwindSafe for EqMatcher<A, T>where
A: UnwindSafe,
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<ActualT, ExpectedT, MatcherT> StrMatcherConfigurator<ActualT, ExpectedT> for MatcherT
impl<ActualT, ExpectedT, MatcherT> StrMatcherConfigurator<ActualT, ExpectedT> for MatcherT
source§fn ignoring_leading_whitespace(self) -> StrMatcher<ActualT, ExpectedT>
fn ignoring_leading_whitespace(self) -> StrMatcher<ActualT, 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<ActualT, ExpectedT>
fn ignoring_trailing_whitespace(self) -> StrMatcher<ActualT, 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<ActualT, ExpectedT>
fn ignoring_outer_whitespace(self) -> StrMatcher<ActualT, 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<ActualT, ExpectedT>
fn ignoring_ascii_case(self) -> StrMatcher<ActualT, ExpectedT>
Configures the matcher to ignore ASCII case when comparing values. Read more