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> Freeze for OptionAssert<T>where
T: Freeze,
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