Struct delayed_assert::DelayedAssert [−][src]
A struct for keeping state of delayed asserts.
Implementations
impl DelayedAssert
[src]
pub fn new() -> Self
[src]
Creates a new holder for delayed asserts.
pub fn expect<T: Truthy + Debug>(&mut self, value: T)
[src]
Use just like the assert!
macro, adds it to the queue.
pub fn expect_equal<T: PartialEq + Debug>(&mut self, left: T, right: T)
[src]
Use just like the assert_eq!
macro, adds it to the queue.
pub fn assert_expectations(self)
[src]
Run the asserts.
Trait Implementations
impl Debug for DelayedAssert
[src]
impl Default for DelayedAssert
[src]
fn default() -> DelayedAssert
[src]
Auto Trait Implementations
impl RefUnwindSafe for DelayedAssert
impl Send for DelayedAssert
impl Sync for DelayedAssert
impl Unpin for DelayedAssert
impl UnwindSafe for DelayedAssert
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<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>,