Struct predicates::str::Utf8Predicate [−][src]
Predicate adaper that converts a str
predicate to byte predicate.
This is created by pred.from_utf8()
.
Trait Implementations
impl<P: Debug> Debug for Utf8Predicate<P> where
P: Predicate<str>,
[src]
impl<P: Debug> Debug for Utf8Predicate<P> where
P: Predicate<str>,
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<P: Clone> Clone for Utf8Predicate<P> where
P: Predicate<str>,
[src]
impl<P: Clone> Clone for Utf8Predicate<P> where
P: Predicate<str>,
fn clone(&self) -> Utf8Predicate<P>
[src]
fn clone(&self) -> Utf8Predicate<P>
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<P: Copy> Copy for Utf8Predicate<P> where
P: Predicate<str>,
[src]
impl<P: Copy> Copy for Utf8Predicate<P> where
P: Predicate<str>,
impl<P: PartialEq> PartialEq for Utf8Predicate<P> where
P: Predicate<str>,
[src]
impl<P: PartialEq> PartialEq for Utf8Predicate<P> where
P: Predicate<str>,
fn eq(&self, other: &Utf8Predicate<P>) -> bool
[src]
fn eq(&self, other: &Utf8Predicate<P>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Utf8Predicate<P>) -> bool
[src]
fn ne(&self, other: &Utf8Predicate<P>) -> bool
This method tests for !=
.
impl<P: Eq> Eq for Utf8Predicate<P> where
P: Predicate<str>,
[src]
impl<P: Eq> Eq for Utf8Predicate<P> where
P: Predicate<str>,
impl<P> Predicate<OsStr> for Utf8Predicate<P> where
P: Predicate<str>,
[src]
impl<P> Predicate<OsStr> for Utf8Predicate<P> where
P: Predicate<str>,
fn eval(&self, variable: &OsStr) -> bool
[src]
fn eval(&self, variable: &OsStr) -> bool
Execute this Predicate
against variable
, returning the resulting boolean. Read more
fn find_case<'a>(&'a self, expected: bool, variable: &OsStr) -> Option<Case<'a>>
[src]
fn find_case<'a>(&'a self, expected: bool, variable: &OsStr) -> Option<Case<'a>>
Find a case that proves this predicate as expected
when run against variable
.
impl<P> Predicate<[u8]> for Utf8Predicate<P> where
P: Predicate<str>,
[src]
impl<P> Predicate<[u8]> for Utf8Predicate<P> where
P: Predicate<str>,
fn eval(&self, variable: &[u8]) -> bool
[src]
fn eval(&self, variable: &[u8]) -> bool
Execute this Predicate
against variable
, returning the resulting boolean. Read more
fn find_case<'a>(&'a self, expected: bool, variable: &[u8]) -> Option<Case<'a>>
[src]
fn find_case<'a>(&'a self, expected: bool, variable: &[u8]) -> Option<Case<'a>>
Find a case that proves this predicate as expected
when run against variable
.
impl<P> PredicateReflection for Utf8Predicate<P> where
P: Predicate<str>,
[src]
impl<P> PredicateReflection for Utf8Predicate<P> where
P: Predicate<str>,
ⓘImportant traits for Box<R>fn children<'a>(&'a self) -> Box<Iterator<Item = Child<'a>> + 'a>
[src]
ⓘImportant traits for Box<R>
fn children<'a>(&'a self) -> Box<Iterator<Item = Child<'a>> + 'a>
Nested Predicate
s of the current Predicate
.
ⓘImportant traits for Box<R>fn parameters(&'a self) -> Box<Iterator<Item = Parameter<'a>> + 'a>
[src]
ⓘImportant traits for Box<R>
fn parameters(&'a self) -> Box<Iterator<Item = Parameter<'a>> + 'a>
Parameters of the current Predicate
.
impl<P> Display for Utf8Predicate<P> where
P: Predicate<str>,
[src]
impl<P> Display for Utf8Predicate<P> where
P: Predicate<str>,
Auto Trait Implementations
impl<P> Send for Utf8Predicate<P> where
P: Send,
impl<P> Send for Utf8Predicate<P> where
P: Send,
impl<P> Sync for Utf8Predicate<P> where
P: Sync,
impl<P> Sync for Utf8Predicate<P> where
P: Sync,