Struct assert_fs::assert::StrPathPredicate [−][src]
Expand description
Keep predicates
concrete Predicates out of our public API.
predicates_core::Predicate used by IntoPathPredicate
for str
predicates.
Example
use assert_fs::prelude::*;
use predicates::prelude::*;
let temp = assert_fs::TempDir::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
type Predicate = StrPathPredicate<P>
type Predicate = StrPathPredicate<P>
The type of the predicate being returned.
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more
type Predicate = P
type Predicate = P
The type of the predicate being returned.
Convert to a predicate for testing a path.
Name a predicate expression. Read more