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 Freeze for EqCodePredicate
impl RefUnwindSafe for EqCodePredicate
impl Send for EqCodePredicate
impl Sync for EqCodePredicate
impl Unpin for EqCodePredicate
impl UnsafeUnpin 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