Trait assert_fs::assert::IntoPathPredicate [−][src]
pub trait IntoPathPredicate<P> where
P: Predicate<Path>, { type Predicate; fn into_path(self) -> P; }
Expand description
Used by PathAssert
to convert Self into the needed predicates_core::Predicate<Path>
.
Examples
use std::path; use assert_fs::prelude::*; use predicates::prelude::*; let temp = assert_fs::TempDir::new().unwrap(); // ... do something with input_file ... temp.child("bar.txt").assert(predicate::path::missing()); // Uses IntoPathPredicate temp.close().unwrap();
Associated Types
Required methods
Implementations on Foreign Types
type Predicate = StrContentPathPredicate
type Predicate = StrContentPathPredicate
type Predicate = StrContentPathPredicate