Struct assert_cmd::assert::StrOutputPredicate
source · pub struct StrOutputPredicate<P: Predicate<str>>(_);
Expand description
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::diff("world\n"));
Trait Implementations§
source§impl<P: Clone + Predicate<str>> Clone for StrOutputPredicate<P>
impl<P: Clone + Predicate<str>> Clone for StrOutputPredicate<P>
source§fn clone(&self) -> StrOutputPredicate<P>
fn clone(&self) -> StrOutputPredicate<P>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<P> IntoOutputPredicate<StrOutputPredicate<P>> for Pwhere
P: Predicate<str>,
impl<P> IntoOutputPredicate<StrOutputPredicate<P>> for Pwhere P: Predicate<str>,
§type Predicate = StrOutputPredicate<P>
type Predicate = StrOutputPredicate<P>
The type of the predicate being returned.
source§fn into_output(self) -> Self::Predicate
fn into_output(self) -> Self::Predicate
Convert to a predicate for testing a path.
source§impl<P> PredicateReflection for StrOutputPredicate<P>where
P: Predicate<str>,
impl<P> PredicateReflection for StrOutputPredicate<P>where P: Predicate<str>,
Auto Trait Implementations§
impl<P> RefUnwindSafe for StrOutputPredicate<P>where P: RefUnwindSafe,
impl<P> Send for StrOutputPredicate<P>where P: Send,
impl<P> Sync for StrOutputPredicate<P>where P: Sync,
impl<P> Unpin for StrOutputPredicate<P>where P: Unpin,
impl<P> UnwindSafe for StrOutputPredicate<P>where P: UnwindSafe,
Blanket Implementations§
source§impl<P> IntoOutputPredicate<P> for Pwhere
P: Predicate<[u8]>,
impl<P> IntoOutputPredicate<P> for Pwhere P: Predicate<[u8]>,
source§fn into_output(self) -> <P as IntoOutputPredicate<P>>::Predicate
fn into_output(self) -> <P as IntoOutputPredicate<P>>::Predicate
Convert to a predicate for testing a path.
source§impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateBooleanExt<Item> for Pwhere P: Predicate<Item>, Item: ?Sized,
source§fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where B: Predicate<Item>, Self: Sized,
Compute the logical AND of two
Predicate
results, returning the result. Read more