Struct assert_fs::assert::StrContentPathPredicate[][src]

pub struct StrContentPathPredicate(_);

Keep predicates concrete Predicates out of our public API. predicates_core::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 Clone for StrContentPathPredicate[src]

impl Debug for StrContentPathPredicate[src]

impl Display for StrContentPathPredicate[src]

impl IntoPathPredicate<StrContentPathPredicate> for String[src]

type Predicate = StrContentPathPredicate

The type of the predicate being returned.

impl<'s> IntoPathPredicate<StrContentPathPredicate> for &'s str[src]

type Predicate = StrContentPathPredicate

The type of the predicate being returned.

impl<'s> IntoPathPredicate<StrContentPathPredicate> for &'s String[src]

type Predicate = StrContentPathPredicate

The type of the predicate being returned.

impl Predicate<Path> for StrContentPathPredicate[src]

impl PredicateReflection for StrContentPathPredicate[src]

fn children<'a>(&'a self) -> Box<dyn Iterator<Item = Child<'a>> + 'a>[src]

Nested Predicates of the current Predicate.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<P> IntoPathPredicate<P> for P where
    P: Predicate<Path>, 
[src]

type Predicate = P

The type of the predicate being returned.

impl<P, Item> PredicateBooleanExt<Item> for P where
    P: Predicate<Item>,
    Item: ?Sized
[src]

impl<P, Item> PredicateBoxExt<Item> for P where
    P: Predicate<Item>, 
[src]

impl<P, Item> PredicateNameExt<Item> for P where
    P: Predicate<Item>,
    Item: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,