[−][src]Struct assert_cmd::assert::StrContentOutputPredicate
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
impl IntoOutputPredicate<StrContentOutputPredicate> for String[src]
type Predicate = StrContentOutputPredicate
The type of the predicate being returned.
fn into_output(self) -> Self::Predicate[src]
impl IntoOutputPredicate<StrContentOutputPredicate> for &'static str[src]
type Predicate = StrContentOutputPredicate
The type of the predicate being returned.
fn into_output(self) -> Self::Predicate[src]
impl Clone for StrContentOutputPredicate[src]
fn clone(&self) -> StrContentOutputPredicate[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Display for StrContentOutputPredicate[src]
impl Debug for StrContentOutputPredicate[src]
impl Predicate<[u8]> for StrContentOutputPredicate[src]
fn eval(&self, item: &[u8]) -> bool[src]
fn find_case<'a>(&'a self, expected: bool, variable: &[u8]) -> Option<Case<'a>>[src]
impl PredicateReflection for StrContentOutputPredicate[src]
Auto Trait Implementations
impl Send for StrContentOutputPredicate
impl Sync for StrContentOutputPredicate
Blanket Implementations
impl<P> IntoOutputPredicate for P where
P: Predicate<[u8]>, [src]
P: Predicate<[u8]>,
type Predicate = P
The type of the predicate being returned.
fn into_output(Self) -> <P as IntoOutputPredicate<P>>::Predicate[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<P, Item> PredicateBoxExt for P where
P: Predicate<Item>, [src]
P: Predicate<Item>,
fn boxed(self) -> BoxPredicate<Item> where
Self: Send + Sync + 'static, [src]
Self: Send + Sync + 'static,
Returns a BoxPredicate wrapper around this Predicate type. Read more
impl<P, Item> PredicateNameExt for P where
Item: ?Sized,
P: Predicate<Item>, [src]
Item: ?Sized,
P: Predicate<Item>,
fn name(self, name: &'static str) -> NamePredicate<Self, Item>[src]
Name a predicate expression. Read more
impl<P, Item> PredicateBooleanExt for P where
Item: ?Sized,
P: Predicate<Item>, [src]
Item: ?Sized,
P: Predicate<Item>,
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item> where
B: Predicate<Item>, [src]
B: Predicate<Item>,
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]
B: Predicate<Item>,
Compute the logical OR of two Predicate results, returning the result. Read more
fn not(self) -> NotPredicate<Self, Item>[src]
Compute the logical NOT of a Predicate, returning the result. Read more
impl<P> PredicateFileContentExt for P where
P: Predicate<[u8]>, [src]
P: Predicate<[u8]>,
fn from_file_path(self) -> FileContentPredicate<Self>[src]
Returns a FileContentPredicate that adapts Self to a file content Predicate. Read more