Struct assert_cmd::assert::StrOutputPredicate [−][src]
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::similar("world\n"));
Trait Implementations
impl<P: Clone + Predicate<str>> Clone for StrOutputPredicate<P>
[src]
impl<P: Clone + Predicate<str>> Clone for StrOutputPredicate<P>
[src]fn clone(&self) -> StrOutputPredicate<P>
[src]
fn clone(&self) -> StrOutputPredicate<P>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<P> Display for StrOutputPredicate<P> where
P: Predicate<str>,
[src]
impl<P> Display for StrOutputPredicate<P> where
P: Predicate<str>,
[src]impl<P> IntoOutputPredicate<StrOutputPredicate<P>> for P where
P: Predicate<str>,
[src]
impl<P> IntoOutputPredicate<StrOutputPredicate<P>> for P where
P: Predicate<str>,
[src]type Predicate = StrOutputPredicate<P>
type Predicate = StrOutputPredicate<P>
The type of the predicate being returned.
fn into_output(self) -> Self::Predicate
[src]
fn into_output(self) -> Self::Predicate
[src]Convert to a predicate for testing a path.
impl<P> PredicateReflection for StrOutputPredicate<P> where
P: Predicate<str>,
[src]
impl<P> PredicateReflection for StrOutputPredicate<P> where
P: Predicate<str>,
[src]Auto Trait Implementations
impl<P> RefUnwindSafe for StrOutputPredicate<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for StrOutputPredicate<P> where
P: Send,
P: Send,
impl<P> Sync for StrOutputPredicate<P> where
P: Sync,
P: Sync,
impl<P> Unpin for StrOutputPredicate<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for StrOutputPredicate<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<P> IntoOutputPredicate<P> for P where
P: Predicate<[u8]>,
[src]
impl<P> IntoOutputPredicate<P> for P where
P: Predicate<[u8]>,
[src]type Predicate = P
type Predicate = P
The type of the predicate being returned.
pub fn into_output(Self) -> <P as IntoOutputPredicate<P>>::Predicate
[src]
pub fn into_output(Self) -> <P as IntoOutputPredicate<P>>::Predicate
[src]Convert to a predicate for testing a path.
impl<P, Item> PredicateBooleanExt<Item> for P where
P: Predicate<Item>,
Item: ?Sized,
[src]
impl<P, Item> PredicateBooleanExt<Item> for P where
P: Predicate<Item>,
Item: ?Sized,
[src]fn and<B>(self, other: B) -> AndPredicate<Self, B, Item> where
B: Predicate<Item>,
[src]
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item> where
B: Predicate<Item>,
[src]Compute the logical AND of two Predicate
results, returning the result. Read more
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item> where
B: Predicate<Item>,
[src]
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item> where
B: Predicate<Item>,
[src]Compute the logical OR of two Predicate
results, returning the result. Read more
fn not(self) -> NotPredicate<Self, Item>
[src]
fn not(self) -> NotPredicate<Self, Item>
[src]Compute the logical NOT of a Predicate
, returning the result. Read more
impl<P, Item> PredicateBoxExt<Item> for P where
P: Predicate<Item>,
[src]
impl<P, Item> PredicateBoxExt<Item> for P where
P: Predicate<Item>,
[src]impl<P> PredicateFileContentExt for P where
P: Predicate<[u8]>,
[src]
impl<P> PredicateFileContentExt for P where
P: Predicate<[u8]>,
[src]fn from_file_path(self) -> FileContentPredicate<Self>
[src]
fn from_file_path(self) -> FileContentPredicate<Self>
[src]Returns a FileContentPredicate
that adapts Self
to a file content Predicate
. Read more
impl<P, Item> PredicateNameExt<Item> for P where
P: Predicate<Item>,
Item: ?Sized,
[src]
impl<P, Item> PredicateNameExt<Item> for P where
P: Predicate<Item>,
Item: ?Sized,
[src]fn name(self, name: &'static str) -> NamePredicate<Self, Item>
[src]
fn name(self, name: &'static str) -> NamePredicate<Self, Item>
[src]Name a predicate expression. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more