Struct assert_cmd::assert::StrContentOutputPredicate
source · pub struct StrContentOutputPredicate(/* private fields */);
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 Freeze for StrContentOutputPredicate
impl RefUnwindSafe for StrContentOutputPredicate
impl Send for StrContentOutputPredicate
impl Sync for StrContentOutputPredicate
impl Unpin for StrContentOutputPredicate
impl UnwindSafe for StrContentOutputPredicate
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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