Struct assert_cmd::assert::EqCodePredicate
source · 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§
source§impl Debug for EqCodePredicate
impl Debug for EqCodePredicate
source§impl Display for EqCodePredicate
impl Display for EqCodePredicate
source§impl IntoCodePredicate<EqCodePredicate> for i32
impl IntoCodePredicate<EqCodePredicate> for i32
source§impl Predicate<i32> for EqCodePredicate
impl Predicate<i32> for EqCodePredicate
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§
source§impl<P> IntoCodePredicate<P> for Pwhere
P: Predicate<i32>,
impl<P> IntoCodePredicate<P> for Pwhere P: Predicate<i32>,
source§impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateBooleanExt<Item> for Pwhere P: Predicate<Item>, Item: ?Sized,
source§fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where B: Predicate<Item>, Self: Sized,
Compute the logical AND of two
Predicate
results, returning the result. Read more