[−][src]Trait assert_fs::assert::IntoPathPredicate
Used by PathAssert
to convert Self into the needed Predicate<Path>
.
Examples
extern crate assert_fs; extern crate predicates; 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
type Predicate
The type of the predicate being returned.
Required methods
fn into_path(self) -> P
Convert to a predicate for testing a path.
Implementations on Foreign Types
impl IntoPathPredicate<BytesContentPathPredicate> for &'static [u8]
[src]
type Predicate = BytesContentPathPredicate
fn into_path(self) -> Self::Predicate
[src]
impl IntoPathPredicate<StrContentPathPredicate> for &'static str
[src]
type Predicate = StrContentPathPredicate
fn into_path(self) -> Self::Predicate
[src]
Implementors
impl<P> IntoPathPredicate<StrPathPredicate<P>> for P where
P: Predicate<str>,
[src]
P: Predicate<str>,
type Predicate = StrPathPredicate<P>
fn into_path(self) -> Self::Predicate
[src]
impl<P> IntoPathPredicate<P> for P where
P: Predicate<Path>,
[src]
P: Predicate<Path>,