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