Struct assert_cmd::assert::InCodePredicate
source · 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§
source§impl Debug for InCodePredicate
impl Debug for InCodePredicate
source§impl Display for InCodePredicate
impl Display for InCodePredicate
source§impl IntoCodePredicate<InCodePredicate> for &'static [i32]
impl IntoCodePredicate<InCodePredicate> for &'static [i32]
source§impl IntoCodePredicate<InCodePredicate> for Vec<i32>
impl IntoCodePredicate<InCodePredicate> for Vec<i32>
source§impl Predicate<i32> for InCodePredicate
impl Predicate<i32> for InCodePredicate
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§
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