[−][src]Struct assert_cmd::assert::StrOutputPredicate
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]
fn clone(&self) -> StrOutputPredicate<P>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<P: Debug + Predicate<str>> Debug for StrOutputPredicate<P>
[src]
impl<P> Display for StrOutputPredicate<P> where
P: Predicate<str>,
[src]
P: Predicate<str>,
impl<P> IntoOutputPredicate<StrOutputPredicate<P>> for P where
P: Predicate<str>,
[src]
P: Predicate<str>,
type Predicate = StrOutputPredicate<P>
The type of the predicate being returned.
fn into_output(self) -> Self::Predicate
[src]
impl<P> Predicate<[u8]> for StrOutputPredicate<P> where
P: Predicate<str>,
[src]
P: Predicate<str>,
fn eval(&self, item: &[u8]) -> bool
[src]
fn find_case<'a>(&'a self, expected: bool, variable: &[u8]) -> Option<Case<'a>>
[src]
impl<P> PredicateReflection for StrOutputPredicate<P> where
P: Predicate<str>,
[src]
P: Predicate<str>,
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<P> IntoOutputPredicate<P> 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<P, Item> PredicateBooleanExt<Item> 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>,
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item> where
B: Predicate<Item>,
[src]
B: Predicate<Item>,
fn not(self) -> NotPredicate<Self, Item>
[src]
impl<P, Item> PredicateBoxExt<Item> 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,
impl<P> PredicateFileContentExt for P where
P: Predicate<[u8]>,
[src]
P: Predicate<[u8]>,
fn from_file_path(self) -> FileContentPredicate<Self>
[src]
impl<P, Item> PredicateNameExt<Item> for P where
Item: ?Sized,
P: Predicate<Item>,
[src]
Item: ?Sized,
P: Predicate<Item>,
fn name(self, name: &'static str) -> NamePredicate<Self, Item>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,