Struct assert_cmd::assert::StrOutputPredicate
source · pub struct StrOutputPredicate<P: Predicate<str>>(/* private fields */);
Expand description
predicates_core::Predicate
used by IntoOutputPredicate
for
Predicate<str>
.
§Example
use assert_cmd::prelude::*;
use std::process::Command;
use predicates::prelude::*;
Command::cargo_bin("bin_fixture")
.unwrap()
.env("stdout", "hello")
.env("stderr", "world")
.assert()
.stderr(predicate::str::diff("world\n"));
Trait Implementations§
source§impl<P: Clone + Predicate<str>> Clone for StrOutputPredicate<P>
impl<P: Clone + Predicate<str>> Clone for StrOutputPredicate<P>
source§fn clone(&self) -> StrOutputPredicate<P>
fn clone(&self) -> StrOutputPredicate<P>
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<P> Display for StrOutputPredicate<P>
impl<P> Display for StrOutputPredicate<P>
source§impl<P> IntoOutputPredicate<StrOutputPredicate<P>> for P
impl<P> IntoOutputPredicate<StrOutputPredicate<P>> for P
§type Predicate = StrOutputPredicate<P>
type Predicate = StrOutputPredicate<P>
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<P> Predicate<[u8]> for StrOutputPredicate<P>
impl<P> Predicate<[u8]> for StrOutputPredicate<P>
source§impl<P> PredicateReflection for StrOutputPredicate<P>
impl<P> PredicateReflection for StrOutputPredicate<P>
Auto Trait Implementations§
impl<P> Freeze for StrOutputPredicate<P>where
P: Freeze,
impl<P> RefUnwindSafe for StrOutputPredicate<P>where
P: RefUnwindSafe,
impl<P> Send for StrOutputPredicate<P>where
P: Send,
impl<P> Sync for StrOutputPredicate<P>where
P: Sync,
impl<P> Unpin for StrOutputPredicate<P>where
P: Unpin,
impl<P> UnwindSafe for StrOutputPredicate<P>where
P: UnwindSafe,
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