[−][src]Struct assert_fs::assert::StrContentPathPredicate
Predicate used by IntoPathPredicate
for str
.
Example
use assert_fs::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(""); // Uses StrContentPathPredicate temp.close().unwrap();
Trait Implementations
impl IntoPathPredicate<StrContentPathPredicate> for &'static str
[src]
impl IntoPathPredicate<StrContentPathPredicate> for &'static str
type Predicate = StrContentPathPredicate
The type of the predicate being returned.
fn into_path(self) -> Self::Predicate | [src] |
impl Clone for StrContentPathPredicate
[src]
impl Clone for StrContentPathPredicate
fn clone(&self) -> StrContentPathPredicate | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Display for StrContentPathPredicate
[src]
impl Display for StrContentPathPredicate
impl Debug for StrContentPathPredicate
[src]
impl Debug for StrContentPathPredicate
impl Predicate<Path> for StrContentPathPredicate
[src]
impl Predicate<Path> for StrContentPathPredicate
fn eval(&self, item: &Path) -> bool | [src] |
fn find_case<'a>(&'a self, expected: bool, variable: &Path) -> Option<Case<'a>> | [src] |
impl PredicateReflection for StrContentPathPredicate
[src]
impl PredicateReflection for StrContentPathPredicate
Auto Trait Implementations
impl Send for StrContentPathPredicate
impl Send for StrContentPathPredicate
impl Sync for StrContentPathPredicate
impl Sync for StrContentPathPredicate
Blanket Implementations
impl<P> IntoPathPredicate for P where
P: Predicate<Path>,
[src]
impl<P> IntoPathPredicate for P where
P: Predicate<Path>,
type Predicate = P
The type of the predicate being returned.
fn into_path(Self) -> <P as IntoPathPredicate<P>>::Predicate | [src] |
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<P, Item> PredicateBoxExt for P where
P: Predicate<Item>,
[src]
impl<P, Item> PredicateBoxExt for P where
P: Predicate<Item>,
fn boxed(self) -> BoxPredicate<Item> where | [src] |
Returns a BoxPredicate
wrapper around this Predicate
type. Read more
impl<P, Item> PredicateNameExt for P where
Item: ?Sized,
P: Predicate<Item>,
[src]
impl<P, Item> PredicateNameExt for P where
Item: ?Sized,
P: Predicate<Item>,
fn name(self, name: &'static str) -> NamePredicate<Self, Item> | [src] |
Name a predicate expression. Read more
impl<P, Item> PredicateBooleanExt for P where
Item: ?Sized,
P: Predicate<Item>,
[src]
impl<P, Item> PredicateBooleanExt for P where
Item: ?Sized,
P: Predicate<Item>,
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item> where | [src] |
Compute the logical AND of two Predicate
results, returning the result. Read more
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item> where | [src] |
Compute the logical OR of two Predicate
results, returning the result. Read more
fn not(self) -> NotPredicate<Self, Item> | [src] |
Compute the logical NOT of a Predicate
, returning the result. Read more