pub struct StrPathPredicate<P: Predicate<str>>(/* private fields */);
Available on crate feature
assert
only.Expand description
Adapter used by IntoUtf8PathPredicate
for Predicate<str>
instances,
such as those in [predicates::str
].
§Example
use camino_tempfile_ext::prelude::*;
use predicates::prelude::*;
let temp = Utf8TempDir::new().unwrap();
let input_file = temp.child("foo.txt");
input_file.touch().unwrap();
// ... do something with input_file ...
input_file.assert(predicate::str::is_empty()); // Uses StrPathPredicate
temp.close().unwrap();
Trait Implementations§
Source§impl<P: Clone + Predicate<str>> Clone for StrPathPredicate<P>
impl<P: Clone + Predicate<str>> Clone for StrPathPredicate<P>
Source§fn clone(&self) -> StrPathPredicate<P>
fn clone(&self) -> StrPathPredicate<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> Display for StrPathPredicate<P>where
P: Predicate<str>,
impl<P> Display for StrPathPredicate<P>where
P: Predicate<str>,
Source§impl<P> IntoUtf8PathPredicate<StrPathPredicate<P>> for Pwhere
P: Predicate<str>,
impl<P> IntoUtf8PathPredicate<StrPathPredicate<P>> for Pwhere
P: Predicate<str>,
Source§impl<P> Predicate<Utf8Path> for StrPathPredicate<P>where
P: Predicate<str>,
impl<P> Predicate<Utf8Path> for StrPathPredicate<P>where
P: Predicate<str>,
Source§impl<P> PredicateReflection for StrPathPredicate<P>where
P: Predicate<str>,
impl<P> PredicateReflection for StrPathPredicate<P>where
P: Predicate<str>,
Auto Trait Implementations§
impl<P> Freeze for StrPathPredicate<P>where
P: Freeze,
impl<P> RefUnwindSafe for StrPathPredicate<P>where
P: RefUnwindSafe,
impl<P> Send for StrPathPredicate<P>where
P: Send,
impl<P> Sync for StrPathPredicate<P>where
P: Sync,
impl<P> Unpin for StrPathPredicate<P>where
P: Unpin,
impl<P> UnwindSafe for StrPathPredicate<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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<P> IntoUtf8PathPredicate<P> for Pwhere
P: Predicate<Utf8Path>,
impl<P> IntoUtf8PathPredicate<P> for Pwhere
P: Predicate<Utf8Path>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
§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