Struct predicates::BoxPredicate
source · pub struct BoxPredicate<Item: ?Sized>(/* private fields */);
Expand description
Predicate
that wraps another Predicate
as a trait object, allowing
sized storage of predicate types.
Implementations§
source§impl<Item> BoxPredicate<Item>where
Item: ?Sized,
impl<Item> BoxPredicate<Item>where
Item: ?Sized,
Trait Implementations§
source§impl<Item> Debug for BoxPredicate<Item>where
Item: ?Sized,
impl<Item> Debug for BoxPredicate<Item>where
Item: ?Sized,
source§impl<Item> Display for BoxPredicate<Item>where
Item: ?Sized,
impl<Item> Display for BoxPredicate<Item>where
Item: ?Sized,
source§impl<Item> Predicate<Item> for BoxPredicate<Item>where
Item: ?Sized,
impl<Item> Predicate<Item> for BoxPredicate<Item>where
Item: ?Sized,
source§impl<Item> PredicateReflection for BoxPredicate<Item>where
Item: ?Sized,
impl<Item> PredicateReflection for BoxPredicate<Item>where
Item: ?Sized,
Auto Trait Implementations§
impl<Item> Freeze for BoxPredicate<Item>where
Item: ?Sized,
impl<Item> !RefUnwindSafe for BoxPredicate<Item>
impl<Item> Send for BoxPredicate<Item>where
Item: ?Sized,
impl<Item> Sync for BoxPredicate<Item>where
Item: ?Sized,
impl<Item> Unpin for BoxPredicate<Item>where
Item: ?Sized,
impl<Item> !UnwindSafe for BoxPredicate<Item>
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<P, Item> PredicateBooleanExt<Item> for P
impl<P, Item> PredicateBooleanExt<Item> for P
source§fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>
Compute the logical AND of two
Predicate
results, returning the result. Read moresource§fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>
Compute the logical OR of two
Predicate
results, returning the result. Read moresource§impl<P, Item> PredicateBoxExt<Item> for Pwhere
P: Predicate<Item>,
impl<P, Item> PredicateBoxExt<Item> for Pwhere
P: Predicate<Item>,
source§impl<P> PredicateFileContentExt for P
impl<P> PredicateFileContentExt for P
source§fn from_file_path(self) -> FileContentPredicate<Self>
fn from_file_path(self) -> FileContentPredicate<Self>
source§impl<P, Item> PredicateNameExt<Item> for P
impl<P, Item> PredicateNameExt<Item> for P
source§impl<P> PredicateStrExt for P
impl<P> PredicateStrExt for P
source§fn trim(self) -> TrimPredicate<Self>
fn trim(self) -> TrimPredicate<Self>
source§fn from_utf8(self) -> Utf8Predicate<Self>
fn from_utf8(self) -> Utf8Predicate<Self>
source§fn normalize(self) -> NormalizedPredicate<Self>
fn normalize(self) -> NormalizedPredicate<Self>
Returns a
NormalizedPredicate
that ensures
the newlines within the data passed to Self
is normalised. Read more