pub struct PathPredicate<P: Predicate<Path>>(/* private fields */);
Available on crate feature
assert
only.Expand description
Adapter used by IntoUtf8PathPredicate
for Predicate<Path>
instances,
such as those in predicates::path
.
§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::path::exists()); // Uses PathPredicate
temp.close().unwrap();
Trait Implementations§
Source§impl<P> Display for PathPredicate<P>where
P: Predicate<Path>,
impl<P> Display for PathPredicate<P>where
P: Predicate<Path>,
Source§impl<P> IntoUtf8PathPredicate<PathPredicate<P>> for Pwhere
P: Predicate<Path>,
impl<P> IntoUtf8PathPredicate<PathPredicate<P>> for Pwhere
P: Predicate<Path>,
Source§impl<P> Predicate<Utf8Path> for PathPredicate<P>where
P: Predicate<Path>,
impl<P> Predicate<Utf8Path> for PathPredicate<P>where
P: Predicate<Path>,
Source§impl<P> PredicateReflection for PathPredicate<P>where
P: Predicate<Path>,
impl<P> PredicateReflection for PathPredicate<P>where
P: Predicate<Path>,
Auto Trait Implementations§
impl<P> Freeze for PathPredicate<P>where
P: Freeze,
impl<P> RefUnwindSafe for PathPredicate<P>where
P: RefUnwindSafe,
impl<P> Send for PathPredicate<P>where
P: Send,
impl<P> Sync for PathPredicate<P>where
P: Sync,
impl<P> Unpin for PathPredicate<P>where
P: Unpin,
impl<P> UnwindSafe for PathPredicate<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> 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
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