Struct assert_cmd::assert::InCodePredicate
source · pub struct InCodePredicate(/* private fields */);
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 Freeze for InCodePredicate
impl RefUnwindSafe for InCodePredicate
impl Send for InCodePredicate
impl Sync for InCodePredicate
impl Unpin for InCodePredicate
impl UnwindSafe for InCodePredicate
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