Struct predicates::path::FileContentPredicate
source · pub struct FileContentPredicate<P>where
P: Predicate<[u8]>,{ /* private fields */ }
Expand description
Predicate adapter that converts a path
predicate to a byte predicate on its content.
This is created by pred.from_path()
.
Trait Implementations§
source§impl<P> Clone for FileContentPredicate<P>where
P: Predicate<[u8]> + Clone,
impl<P> Clone for FileContentPredicate<P>where P: Predicate<[u8]> + Clone,
source§fn clone(&self) -> FileContentPredicate<P>
fn clone(&self) -> FileContentPredicate<P>
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<P> PartialEq<FileContentPredicate<P>> for FileContentPredicate<P>where
P: Predicate<[u8]> + PartialEq,
impl<P> PartialEq<FileContentPredicate<P>> for FileContentPredicate<P>where P: Predicate<[u8]> + PartialEq,
source§fn eq(&self, other: &FileContentPredicate<P>) -> bool
fn eq(&self, other: &FileContentPredicate<P>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<P> PredicateReflection for FileContentPredicate<P>where
P: Predicate<[u8]>,
impl<P> PredicateReflection for FileContentPredicate<P>where P: Predicate<[u8]>,
impl<P> Copy for FileContentPredicate<P>where P: Predicate<[u8]> + Copy,
impl<P> Eq for FileContentPredicate<P>where P: Predicate<[u8]> + Eq,
impl<P> StructuralEq for FileContentPredicate<P>where P: Predicate<[u8]>,
impl<P> StructuralPartialEq for FileContentPredicate<P>where P: Predicate<[u8]>,
Auto Trait Implementations§
impl<P> RefUnwindSafe for FileContentPredicate<P>where P: RefUnwindSafe,
impl<P> Send for FileContentPredicate<P>where P: Send,
impl<P> Sync for FileContentPredicate<P>where P: Sync,
impl<P> Unpin for FileContentPredicate<P>where P: Unpin,
impl<P> UnwindSafe for FileContentPredicate<P>where P: UnwindSafe,
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 Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateBooleanExt<Item> for Pwhere P: Predicate<Item>, Item: ?Sized,
source§fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where B: Predicate<Item>, Self: Sized,
Compute the logical AND of two
Predicate
results, returning the result. Read more