[][src]Struct assert_fs::assert::StrPathPredicate

pub struct StrPathPredicate<P: Predicate<str>>(_);

Predicate used by IntoPathPredicate for str predicates.

Example

extern crate assert_fs;
extern crate predicates;

use assert_fs::prelude::*;
use predicates::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(predicate::str::is_empty()); // Uses StrPathPredicate

temp.close().unwrap();

Trait Implementations

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

type Predicate = StrPathPredicate<P>

The type of the predicate being returned.

impl<P: Clone + Predicate<str>> Clone for StrPathPredicate<P>
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<P: Debug + Predicate<str>> Debug for StrPathPredicate<P>
[src]

impl<P> Display for StrPathPredicate<P> where
    P: Predicate<str>, 
[src]

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

impl<P> PredicateReflection for StrPathPredicate<P> where
    P: Predicate<str>, 
[src]

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

Nested Predicates of the current Predicate.

Auto Trait Implementations

impl<P> Send for StrPathPredicate<P> where
    P: Send

impl<P> Sync for StrPathPredicate<P> where
    P: Sync

Blanket Implementations

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

type Predicate = P

The type of the predicate being returned.

impl<T> From for T
[src]

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

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

type Owned = T

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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.

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

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

fn boxed(self) -> BoxPredicate<Item> where
    Self: Send + Sync + 'static, 
[src]

Returns a BoxPredicate wrapper around this Predicate type. Read more

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

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]

fn and<B>(self, other: B) -> AndPredicate<Self, B, Item> where
    B: Predicate<Item>, 
[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
    B: Predicate<Item>, 
[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