Struct assert_cmd::assert::EqCodePredicate [−][src]
pub struct EqCodePredicate(_);
Expand description
Keep predicates
concrete Predicates out of our public API.
predicates_core::Predicate used by IntoCodePredicate
for code.
Example
use assert_cmd::prelude::*; use std::process::Command; Command::cargo_bin("bin_fixture") .unwrap() .env("exit", "42") .assert() .code(42);
Trait Implementations
impl Debug for EqCodePredicate
[src]
impl Debug for EqCodePredicate
[src]impl Display for EqCodePredicate
[src]
impl Display for EqCodePredicate
[src]impl IntoCodePredicate<EqCodePredicate> for i32
[src]
impl IntoCodePredicate<EqCodePredicate> for i32
[src]type Predicate = EqCodePredicate
type Predicate = EqCodePredicate
The type of the predicate being returned.
impl Predicate<i32> for EqCodePredicate
[src]
impl Predicate<i32> for EqCodePredicate
[src]impl PredicateReflection for EqCodePredicate
[src]
impl PredicateReflection for EqCodePredicate
[src]Auto Trait Implementations
impl RefUnwindSafe for EqCodePredicate
impl Send for EqCodePredicate
impl Sync for EqCodePredicate
impl Unpin for EqCodePredicate
impl UnwindSafe for EqCodePredicate
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> IntoCodePredicate<P> for P where
P: Predicate<i32>,
[src]
impl<P> IntoCodePredicate<P> for P where
P: Predicate<i32>,
[src]type Predicate = P
type Predicate = P
The type of the predicate being returned.
pub fn into_code(Self) -> <P as IntoCodePredicate<P>>::Predicate
[src]
pub fn into_code(Self) -> <P as IntoCodePredicate<P>>::Predicate
[src]Convert to a predicate for testing a program’s exit code.
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, 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