pub trait IntoUtf8PathPredicate<P>where
P: Predicate<Utf8Path>,{
type Predicate;
// Required method
fn into_path(self) -> P;
}
Available on crate feature
assert
only.Expand description
Converts a type into the needed [Predicate<Utf8Path>
].
§Examples
use camino_tempfile_ext::prelude::*;
use predicates::prelude::*;
let temp = Utf8TempDir::new().unwrap();
// ... do something with input_file ...
temp.child("bar.txt").assert(predicate::path::missing()); // Uses IntoUtf8PathPredicate
temp.close().unwrap();