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
type Predicate = InCodePredicate
type Predicate = InCodePredicate
The type of the predicate being returned.
type Predicate = InCodePredicate
type Predicate = InCodePredicate
The type of the predicate being returned.
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
Mutably borrows from an owned value. Read more
type Predicate = P
type Predicate = P
The type of the predicate being returned.
Convert to a predicate for testing a program’s exit code.
Name a predicate expression. Read more