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
sourceimpl Debug for BytesContentOutputPredicate
impl Debug for BytesContentOutputPredicate
sourceimpl Display for BytesContentOutputPredicate
impl Display for BytesContentOutputPredicate
sourceimpl IntoOutputPredicate<BytesContentOutputPredicate> for &'static [u8]
impl IntoOutputPredicate<BytesContentOutputPredicate> for &'static [u8]
type Predicate = BytesContentOutputPredicate
type Predicate = BytesContentOutputPredicate
The type of the predicate being returned.
sourcefn into_output(self) -> Self::Predicate
fn into_output(self) -> Self::Predicate
Convert to a predicate for testing a path.
sourceimpl IntoOutputPredicate<BytesContentOutputPredicate> for Vec<u8>
impl IntoOutputPredicate<BytesContentOutputPredicate> for Vec<u8>
type Predicate = BytesContentOutputPredicate
type Predicate = BytesContentOutputPredicate
The type of the predicate being returned.
sourcefn into_output(self) -> Self::Predicate
fn into_output(self) -> Self::Predicate
Convert to a predicate for testing a path.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<P> IntoOutputPredicate<P> for Pwhere
P: Predicate<[u8]>,
impl<P> IntoOutputPredicate<P> for Pwhere
P: Predicate<[u8]>,
type Predicate = P
type Predicate = P
The type of the predicate being returned.
sourcefn 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.
sourceimpl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
sourcefn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where
B: Predicate<Item>,
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where
B: Predicate<Item>,
Compute the logical AND of two
Predicate
results, returning the result. Read moresourcefn or<B>(self, other: B) -> OrPredicate<Self, B, Item>where
B: Predicate<Item>,
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>where
B: Predicate<Item>,
Compute the logical OR of two
Predicate
results, returning the result. Read moresourcefn not(self) -> NotPredicate<Self, Item>
fn not(self) -> NotPredicate<Self, Item>
Compute the logical NOT of a
Predicate
, returning the result. Read moresourceimpl<P, Item> PredicateBoxExt<Item> for Pwhere
P: Predicate<Item>,
impl<P, Item> PredicateBoxExt<Item> for Pwhere
P: Predicate<Item>,
sourceimpl<P> PredicateFileContentExt for Pwhere
P: Predicate<[u8]>,
impl<P> PredicateFileContentExt for Pwhere
P: Predicate<[u8]>,
sourcefn from_file_path(self) -> FileContentPredicate<Self>
fn from_file_path(self) -> FileContentPredicate<Self>
sourceimpl<P, Item> PredicateNameExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateNameExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
sourcefn name(self, name: &'static str) -> NamePredicate<Self, Item>
fn name(self, name: &'static str) -> NamePredicate<Self, Item>
Name a predicate expression. Read more