pub enum TestAssertionKind {
Show 15 variants
Equal,
NotEqual,
Contains,
DoesNotContain,
GreaterThan,
GreaterThanOrEqual,
LessThan,
LessThanOrEqual,
ApproxEqual,
IsTrue,
IsFalse,
IsSome,
IsNone,
IsOk,
IsErr,
}Expand description
Primitive assertion categories.
Variants§
Equal
NotEqual
Contains
DoesNotContain
GreaterThan
GreaterThanOrEqual
LessThan
LessThanOrEqual
ApproxEqual
IsTrue
IsFalse
IsSome
IsNone
IsOk
IsErr
Trait Implementations§
Source§impl Clone for TestAssertionKind
impl Clone for TestAssertionKind
Source§fn clone(&self) -> TestAssertionKind
fn clone(&self) -> TestAssertionKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestAssertionKind
impl Debug for TestAssertionKind
Source§impl Hash for TestAssertionKind
impl Hash for TestAssertionKind
Source§impl PartialEq for TestAssertionKind
impl PartialEq for TestAssertionKind
Source§fn eq(&self, other: &TestAssertionKind) -> bool
fn eq(&self, other: &TestAssertionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TestAssertionKind
impl Eq for TestAssertionKind
impl StructuralPartialEq for TestAssertionKind
Auto Trait Implementations§
impl Freeze for TestAssertionKind
impl RefUnwindSafe for TestAssertionKind
impl Send for TestAssertionKind
impl Sync for TestAssertionKind
impl Unpin for TestAssertionKind
impl UnsafeUnpin for TestAssertionKind
impl UnwindSafe for TestAssertionKind
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