Struct assert_cmd::assert::StrContentOutputPredicate
source · pub struct StrContentOutputPredicate(_);
Expand description
Keep predicates
concrete Predicates out of our public API.
predicates_core::Predicate used by IntoOutputPredicate
for str
.
Example
use assert_cmd::prelude::*;
use std::process::Command;
Command::cargo_bin("bin_fixture")
.unwrap()
.env("stdout", "hello")
.env("stderr", "world")
.assert()
.stderr("world\n");
Trait Implementations§
source§impl Clone for StrContentOutputPredicate
impl Clone for StrContentOutputPredicate
source§fn clone(&self) -> StrContentOutputPredicate
fn clone(&self) -> StrContentOutputPredicate
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 Debug for StrContentOutputPredicate
impl Debug for StrContentOutputPredicate
source§impl Display for StrContentOutputPredicate
impl Display for StrContentOutputPredicate
source§impl IntoOutputPredicate<StrContentOutputPredicate> for &'static str
impl IntoOutputPredicate<StrContentOutputPredicate> for &'static str
§type Predicate = StrContentOutputPredicate
type Predicate = StrContentOutputPredicate
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 IntoOutputPredicate<StrContentOutputPredicate> for String
impl IntoOutputPredicate<StrContentOutputPredicate> for String
§type Predicate = StrContentOutputPredicate
type Predicate = StrContentOutputPredicate
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 Predicate<[u8]> for StrContentOutputPredicate
impl Predicate<[u8]> for StrContentOutputPredicate
Auto Trait Implementations§
impl RefUnwindSafe for StrContentOutputPredicate
impl Send for StrContentOutputPredicate
impl Sync for StrContentOutputPredicate
impl Unpin for StrContentOutputPredicate
impl UnwindSafe for StrContentOutputPredicate
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