Struct assert_cmd::assert::StrOutputPredicate[][src]

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

predicates_core::Predicate used by IntoOutputPredicate for [Predicate<str>].

Example

use assert_cmd::prelude::*;

use std::process::Command;
use predicates::prelude::*;

Command::cargo_bin("bin_fixture")
    .unwrap()
    .env("stdout", "hello")
    .env("stderr", "world")
    .assert()
    .stderr(predicate::str::similar("world\n"));

Trait Implementations

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

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

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

impl<P> IntoOutputPredicate<StrOutputPredicate<P>> for P where
    P: Predicate<str>, 
[src]

type Predicate = StrOutputPredicate<P>

The type of the predicate being returned.

impl<P> Predicate<[u8]> for StrOutputPredicate<P> where
    P: Predicate<str>, 
[src]

impl<P> PredicateReflection for StrOutputPredicate<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> RefUnwindSafe for StrOutputPredicate<P> where
    P: RefUnwindSafe
[src]

impl<P> Send for StrOutputPredicate<P> where
    P: Send
[src]

impl<P> Sync for StrOutputPredicate<P> where
    P: Sync
[src]

impl<P> Unpin for StrOutputPredicate<P> where
    P: Unpin
[src]

impl<P> UnwindSafe for StrOutputPredicate<P> where
    P: UnwindSafe
[src]

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> IntoOutputPredicate<P> for P where
    P: Predicate<[u8]>, 
[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> PredicateFileContentExt for P where
    P: Predicate<[u8]>, 
[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.