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]
Source§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>
Source§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 Freeze for BytesContentOutputPredicate
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