pub struct Assert<T> { /* private fields */ }
Implementations§
Source§impl<T> Assert<T>
Entry point for the Assert DSL.
impl<T> Assert<T>
Entry point for the Assert DSL.
Assert provides a fluent API for assertions. An Assert holds
the actual
value that can be used in assertion statements.
Assert::that(3).is(3);
Trait Implementations§
Source§impl<T, R> AssertEquals<R> for Assert<T>
Default implementation of AssertEquals.
impl<T, R> AssertEquals<R> for Assert<T>
Default implementation of AssertEquals.
Auto Trait Implementations§
impl<T> Freeze for Assert<T>where
T: Freeze,
impl<T> RefUnwindSafe for Assert<T>where
T: RefUnwindSafe,
impl<T> Send for Assert<T>where
T: Send,
impl<T> Sync for Assert<T>where
T: Sync,
impl<T> Unpin for Assert<T>where
T: Unpin,
impl<T> UnwindSafe for Assert<T>where
T: UnwindSafe,
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