Used by [`PathAssert`] to convert Self into the needed [`predicates_core::Predicate `]. # Examples ```rust 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(); ```
| 176 | /// temp.close().unwrap(); |
| 177 | /// ``` |
| 178 | pub trait IntoPathPredicate<P> |
| 179 | where |
| 180 | P: predicates_core::Predicate<path::Path>, |
| 181 | { |
| 182 | /// The type of the predicate being returned. |
| 183 | type Predicate; |
| 184 | |
| 185 | /// Convert to a predicate for testing a path. |
| 186 | fn into_path(self) -> P; |
| 187 | } |
| 188 | |
| 189 | impl<P> IntoPathPredicate<P> for P |
| 190 | where |
nothing calls this directly
no outgoing calls
no test coverage detected