Struct easy_assert::option_assertions::OptionAssert
source · pub struct OptionAssert<T> { /* private fields */ }Implementations§
source§impl<T: 'static> OptionAssert<T>
impl<T: 'static> OptionAssert<T>
pub fn assert_that(actual: Option<T>) -> OptionAssert<T>
pub fn is_none(&self)
pub fn is_some(&self)
pub fn contains(self) -> ElementMatcher<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for OptionAssert<T>where T: RefUnwindSafe,
impl<T> Send for OptionAssert<T>where T: Send,
impl<T> Sync for OptionAssert<T>where T: Sync,
impl<T> Unpin for OptionAssert<T>where T: Unpin,
impl<T> UnwindSafe for OptionAssert<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