Struct assert_cmd::assert::StrContentOutputPredicate
source · [−]pub struct StrContentOutputPredicate(_);
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
sourceimpl Clone for StrContentOutputPredicate
impl Clone for StrContentOutputPredicate
sourcefn clone(&self) -> StrContentOutputPredicate
fn clone(&self) -> StrContentOutputPredicate
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StrContentOutputPredicate
impl Debug for StrContentOutputPredicate
sourceimpl Display for StrContentOutputPredicate
impl Display for StrContentOutputPredicate
sourceimpl IntoOutputPredicate<StrContentOutputPredicate> for &'static str
impl IntoOutputPredicate<StrContentOutputPredicate> for &'static str
type Predicate = StrContentOutputPredicate
type Predicate = StrContentOutputPredicate
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<StrContentOutputPredicate> for String
impl IntoOutputPredicate<StrContentOutputPredicate> for String
type Predicate = StrContentOutputPredicate
type Predicate = StrContentOutputPredicate
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 StrContentOutputPredicate
impl Predicate<[u8]> for StrContentOutputPredicate
Auto Trait Implementations
impl RefUnwindSafe for StrContentOutputPredicate
impl Send for StrContentOutputPredicate
impl Sync for StrContentOutputPredicate
impl Unpin for StrContentOutputPredicate
impl UnwindSafe for StrContentOutputPredicate
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