Struct assert_cmd::assert::BytesContentOutputPredicate
source · pub struct BytesContentOutputPredicate(/* private fields */);
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<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<P> IntoOutputPredicate<P> for P
impl<P> IntoOutputPredicate<P> for P
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 P
impl<P, Item> PredicateBooleanExt<Item> for P
source§fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>
Compute the logical AND of two
Predicate
results, returning the result. Read moresource§fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>
Compute the logical OR of two
Predicate
results, returning the result. Read more