Struct googletest::matchers::starts_with_matcher::StartsWithMatcher
source · Expand description
A matcher matching a string-like type starting with a given prefix.
Intended only to be used from the function starts_with only.
Should not be referenced by code outside this library.
Trait Implementations§
source§impl<PrefixT, ActualT> Matcher<ActualT> for StartsWithMatcher<PrefixT>where
PrefixT: Deref<Target = str>,
ActualT: AsRef<str> + Debug + ?Sized,
impl<PrefixT, ActualT> Matcher<ActualT> for StartsWithMatcher<PrefixT>where
PrefixT: Deref<Target = str>,
ActualT: AsRef<str> + Debug + ?Sized,
source§fn matches(&self, actual: &ActualT) -> MatcherResult
fn matches(&self, actual: &ActualT) -> MatcherResult
Returns whether the condition matches the datum
actual. Read moresource§fn explain_match(&self, actual: &ActualT) -> MatchExplanation
fn explain_match(&self, actual: &ActualT) -> MatchExplanation
Prepares a
MatchExplanation describing how the expected value
encoded in this instance matches or does not match the given value
actual. Read more