Struct assert_cmd::assert::EqCodePredicate
source · pub struct EqCodePredicate(/* private fields */);
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<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<P> IntoCodePredicate<P> for P
impl<P> IntoCodePredicate<P> for P
source§impl<P, Item> PredicateBooleanExt<Item> for P
impl<P, Item> PredicateBooleanExt<Item> for P
source§fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>
Compute the logical AND of two
Predicate
results, returning the result. Read moresource§fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>
Compute the logical OR of two
Predicate
results, returning the result. Read more