Enum googletest::matcher::MatcherResult
source · pub enum MatcherResult {
Match,
NoMatch,
}
Expand description
The result of applying a Matcher
on an actual value.
Variants§
Match
The actual value matches according to the Matcher
definition.
NoMatch
The actual value does not match according to the Matcher
definition.
Implementations§
source§impl MatcherResult
impl MatcherResult
sourcepub fn is_match(self) -> bool
pub fn is_match(self) -> bool
Returns true
if self
is MatcherResult::Match
, otherwise
false
.
sourcepub fn is_no_match(self) -> bool
pub fn is_no_match(self) -> bool
Returns true
if self
is MatcherResult::NoMatch
, otherwise
false
.
Trait Implementations§
source§impl Clone for MatcherResult
impl Clone for MatcherResult
source§fn clone(&self) -> MatcherResult
fn clone(&self) -> MatcherResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MatcherResult
impl Debug for MatcherResult
source§impl From<MatcherResult> for bool
impl From<MatcherResult> for bool
source§fn from(matcher_result: MatcherResult) -> Self
fn from(matcher_result: MatcherResult) -> Self
Converts to this type from the input type.
source§impl From<bool> for MatcherResult
impl From<bool> for MatcherResult
source§impl PartialEq for MatcherResult
impl PartialEq for MatcherResult
source§fn eq(&self, other: &MatcherResult) -> bool
fn eq(&self, other: &MatcherResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MatcherResult
impl StructuralPartialEq for MatcherResult
Auto Trait Implementations§
impl RefUnwindSafe for MatcherResult
impl Send for MatcherResult
impl Sync for MatcherResult
impl Unpin for MatcherResult
impl UnwindSafe for MatcherResult
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