Struct assert_cmd::assert::InCodePredicate [−][src]
pub struct InCodePredicate(_);
Expand description
Keep predicates
concrete Predicates out of our public API.
predicates_core::Predicate used by IntoCodePredicate
for iterables of codes.
Example
use assert_cmd::prelude::*; use std::process::Command; Command::cargo_bin("bin_fixture") .unwrap() .env("exit", "42") .assert() .code(&[2, 42] as &[i32]);
Trait Implementations
impl Debug for InCodePredicate
[src]
impl Debug for InCodePredicate
[src]impl Display for InCodePredicate
[src]
impl Display for InCodePredicate
[src]impl IntoCodePredicate<InCodePredicate> for Vec<i32>
[src]
impl IntoCodePredicate<InCodePredicate> for Vec<i32>
[src]type Predicate = InCodePredicate
type Predicate = InCodePredicate
The type of the predicate being returned.
impl IntoCodePredicate<InCodePredicate> for &'static [i32]
[src]
impl IntoCodePredicate<InCodePredicate> for &'static [i32]
[src]type Predicate = InCodePredicate
type Predicate = InCodePredicate
The type of the predicate being returned.
impl Predicate<i32> for InCodePredicate
[src]
impl Predicate<i32> for InCodePredicate
[src]impl PredicateReflection for InCodePredicate
[src]
impl PredicateReflection for InCodePredicate
[src]Auto Trait Implementations
impl RefUnwindSafe for InCodePredicate
impl Send for InCodePredicate
impl Sync for InCodePredicate
impl Unpin for InCodePredicate
impl UnwindSafe for InCodePredicate
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