Struct predicates::str::MatchesPredicate [−][src]
pub struct MatchesPredicate { /* fields omitted */ }
Predicate that checks for repeated patterns.
This is created by predicates::str::contains(...).count
.
Trait Implementations
impl Debug for MatchesPredicate
[src]
impl Debug for MatchesPredicate
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for MatchesPredicate
[src]
impl Clone for MatchesPredicate
fn clone(&self) -> MatchesPredicate
[src]
fn clone(&self) -> MatchesPredicate
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for MatchesPredicate
[src]
impl PartialEq for MatchesPredicate
fn eq(&self, other: &MatchesPredicate) -> bool
[src]
fn eq(&self, other: &MatchesPredicate) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MatchesPredicate) -> bool
[src]
fn ne(&self, other: &MatchesPredicate) -> bool
This method tests for !=
.
impl Eq for MatchesPredicate
[src]
impl Eq for MatchesPredicate
impl Predicate<str> for MatchesPredicate
[src]
impl Predicate<str> for MatchesPredicate
fn eval(&self, variable: &str) -> bool
[src]
fn eval(&self, variable: &str) -> bool
Execute this Predicate
against variable
, returning the resulting boolean. Read more
fn find_case<'a>(&'a self, expected: bool, variable: &str) -> Option<Case<'a>>
[src]
fn find_case<'a>(&'a self, expected: bool, variable: &str) -> Option<Case<'a>>
Find a case that proves this predicate as expected
when run against variable
.
impl PredicateReflection for MatchesPredicate
[src]
impl PredicateReflection for MatchesPredicate
ⓘImportant traits for Box<R>fn parameters<'a>(&'a self) -> Box<Iterator<Item = Parameter<'a>> + 'a>
[src]
ⓘImportant traits for Box<R>
fn parameters<'a>(&'a self) -> Box<Iterator<Item = Parameter<'a>> + 'a>
Parameters of the current Predicate
.
ⓘImportant traits for Box<R>fn children(&'a self) -> Box<Iterator<Item = Child<'a>> + 'a>
[src]
ⓘImportant traits for Box<R>
fn children(&'a self) -> Box<Iterator<Item = Child<'a>> + 'a>
Nested Predicate
s of the current Predicate
.
impl Display for MatchesPredicate
[src]
impl Display for MatchesPredicate
Auto Trait Implementations
impl Send for MatchesPredicate
impl Send for MatchesPredicate
impl Sync for MatchesPredicate
impl Sync for MatchesPredicate