pub struct DelayedAssert { /* private fields */ }
Expand description
A struct for keeping state of delayed asserts.
Implementations§
Source§impl DelayedAssert
impl DelayedAssert
Sourcepub fn expect<T: Truthy + Debug>(&mut self, value: T)
pub fn expect<T: Truthy + Debug>(&mut self, value: T)
Use just like the assert!
macro, adds it to the queue.
Sourcepub fn expect_equal<T: PartialEq + Debug>(&mut self, left: T, right: T)
pub fn expect_equal<T: PartialEq + Debug>(&mut self, left: T, right: T)
Use just like the assert_eq!
macro, adds it to the queue.
Sourcepub fn assert_expectations(self)
pub fn assert_expectations(self)
Run the asserts.
Trait Implementations§
Source§impl Debug for DelayedAssert
impl Debug for DelayedAssert
Source§impl Default for DelayedAssert
impl Default for DelayedAssert
Source§fn default() -> DelayedAssert
fn default() -> DelayedAssert
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DelayedAssert
impl RefUnwindSafe for DelayedAssert
impl Send for DelayedAssert
impl Sync for DelayedAssert
impl Unpin for DelayedAssert
impl UnwindSafe for DelayedAssert
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