[−][src]Struct assert_cmd::assert::InCodePredicate
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
impl Debug for InCodePredicate[src]
impl Display for InCodePredicate[src]
impl IntoCodePredicate<InCodePredicate> for Vec<i32>[src]
type Predicate = InCodePredicate
The type of the predicate being returned.
pub fn into_code(self) -> Self::Predicate[src]
impl IntoCodePredicate<InCodePredicate> for &'static [i32][src]
type Predicate = InCodePredicate
The type of the predicate being returned.
pub fn into_code(self) -> Self::Predicate[src]
impl Predicate<i32> for InCodePredicate[src]
pub fn eval(&self, item: &i32) -> bool[src]
pub fn find_case<'a>(
&'a self,
expected: bool,
variable: &i32
) -> Option<Case<'a>>[src]
&'a self,
expected: bool,
variable: &i32
) -> Option<Case<'a>>
impl PredicateReflection for InCodePredicate[src]
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<P> IntoCodePredicate<P> for P where
P: Predicate<i32>, [src]
P: Predicate<i32>,
type Predicate = P
The type of the predicate being returned.
pub fn into_code(Self) -> <P as IntoCodePredicate<P>>::Predicate[src]
impl<P, Item> PredicateBooleanExt<Item> for P where
Item: ?Sized,
P: Predicate<Item>, [src]
Item: ?Sized,
P: Predicate<Item>,
pub fn and<B>(self, other: B) -> AndPredicate<Self, B, Item> where
B: Predicate<Item>, [src]
B: Predicate<Item>,
pub fn or<B>(self, other: B) -> OrPredicate<Self, B, Item> where
B: Predicate<Item>, [src]
B: Predicate<Item>,
pub fn not(self) -> NotPredicate<Self, Item>[src]
impl<P, Item> PredicateBoxExt<Item> for P where
P: Predicate<Item>, [src]
P: Predicate<Item>,
pub fn boxed(self) -> BoxPredicate<Item> where
Self: Send + Sync + 'static, [src]
Self: Send + Sync + 'static,
impl<P, Item> PredicateNameExt<Item> for P where
Item: ?Sized,
P: Predicate<Item>, [src]
Item: ?Sized,
P: Predicate<Item>,
pub fn name(self, name: &'static str) -> NamePredicate<Self, Item>[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,