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 duplicate 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
Source§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§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