[][src]Struct assert_fs::assert::BytesContentPathPredicate

pub struct BytesContentPathPredicate(_);

Predicate used by IntoPathPredicate for bytes.

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(b"" as &[u8]); // uses BytesContentPathPredicate

temp.close().unwrap();

Trait Implementations

impl IntoPathPredicate<BytesContentPathPredicate> for &'static [u8][src]

type Predicate = BytesContentPathPredicate

The type of the predicate being returned.

impl Debug for BytesContentPathPredicate[src]

impl Display for BytesContentPathPredicate[src]

impl Predicate<Path> for BytesContentPathPredicate[src]

impl PredicateReflection for BytesContentPathPredicate[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<P> IntoPathPredicate<P> for P where
    P: Predicate<Path>, 
[src]

type Predicate = P

The type of the predicate being returned.

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

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

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

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

type Error = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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

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

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

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