pub struct FunctionCondition<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> FunctionCondition<H, T>
impl<H, T> FunctionCondition<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 FunctionCondition
that can be called in direct contexts
For example the assert
verb allows you to verify multiple Condition
s (of which FunctionCondition
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 FunctionCondition
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 FunctionCondition
that can be called in both direct and waiting contexts
Trait Implementations§
Source§impl<H, T> Clone for FunctionCondition<H, T>
impl<H, T> Clone for FunctionCondition<H, T>
Auto Trait Implementations§
impl<H, T> Freeze for FunctionCondition<H, T>
impl<H, T> !RefUnwindSafe for FunctionCondition<H, T>
impl<H, T> !Send for FunctionCondition<H, T>
impl<H, T> !Sync for FunctionCondition<H, T>
impl<H, T> Unpin for FunctionCondition<H, T>
impl<H, T> !UnwindSafe for FunctionCondition<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