pub struct Assert<'a, T> { /* private fields */ }Implementations§
Source§impl<'a, K, V> Assert<'a, HashMap<K, V>>
impl<'a, K, V> Assert<'a, HashMap<K, V>>
pub fn contains_key(&self, key: &K) -> &Self
pub fn contains_all(&self, expected: &HashMap<K, V>) -> &Self
Source§impl<'a, T> Assert<'a, T>where
T: PartialOrd + Display,
impl<'a, T> Assert<'a, T>where
T: PartialOrd + Display,
pub fn greater_than_or_equal_to(&self, expected: &T) -> &Self
pub fn greater_than_to(&self, expected: &T) -> &Self
pub fn less_than_or_equal_to(&self, expected: &T) -> &Self
pub fn less_than_to(&self, expected: &T) -> &Self
pub fn in_range(&self, expected: Range<T>) -> &Self
Source§impl<'a, T> Assert<'a, T>where
T: Fn() + RefUnwindSafe,
impl<'a, T> Assert<'a, T>where
T: Fn() + RefUnwindSafe,
pub fn should_panic(&mut self) -> &Self
Source§impl<'a, S, E> Assert<'a, Result<S, E>>
impl<'a, S, E> Assert<'a, Result<S, E>>
pub fn is_ok(&self) -> &Self
pub fn ok_and_equals(&self, expected: &S) -> &Self
pub fn is_err(&self) -> &Self
pub fn err_and_equals(&self, expected: &E) -> &Self
Source§impl<'a, T> Assert<'a, Option<T>>
impl<'a, T> Assert<'a, Option<T>>
pub fn is_some(&self) -> &Self
pub fn is_some_equal_to(&self, expected: &T) -> &Self
pub fn unwrap_some(&self) -> Assert<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Assert<'a, T>
impl<'a, T> RefUnwindSafe for Assert<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Assert<'a, T>where
T: Sync,
impl<'a, T> Sync for Assert<'a, T>where
T: Sync,
impl<'a, T> Unpin for Assert<'a, T>
impl<'a, T> UnwindSafe for Assert<'a, T>where
T: RefUnwindSafe,
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