pub struct Condition<H, T> { /* private fields */ }Expand description
A condition that can be used in test-cases
Depending on how it is constructed, it may or may not be able to be used in direct or waiting contexts
Implementations§
Source§impl<H, T> Condition<H, T>
impl<H, T> Condition<H, T>
Sourcepub fn new_now<C>(now: C) -> Selfwhere
C: Checker<H, T>,
pub fn new_now<C>(now: C) -> Selfwhere
C: Checker<H, T>,
Create a new Condition that can be called in direct contexts
For example the assert verb allows you to verify multiple TestConditions (of which Condition is one way to create one).
Sourcepub fn new_wait<C>(wait: C) -> Selfwhere
C: Checker<H, T>,
pub fn new_wait<C>(wait: C) -> Selfwhere
C: Checker<H, T>,
Create a new Condition that can be called in waiting contexts
Sourcepub fn new_now_and_wait<C>(both: C) -> Selfwhere
C: Checker<H, T>,
pub fn new_now_and_wait<C>(both: C) -> Selfwhere
C: Checker<H, T>,
Create a new Condition that can be called in both direct and waiting contexts
Trait Implementations§
Auto Trait Implementations§
impl<H, T> Freeze for Condition<H, T>
impl<H, T> !RefUnwindSafe for Condition<H, T>
impl<H, T> !Send for Condition<H, T>
impl<H, T> !Sync for Condition<H, T>
impl<H, T> Unpin for Condition<H, T>
impl<H, T> !UnwindSafe for Condition<H, T>
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