pub struct TestAssertion {
pub kind: TestAssertionKind,
pub label: Option<String>,
}Expand description
Assertion metadata without assertion execution.
Fields§
§kind: TestAssertionKind§label: Option<String>Implementations§
Source§impl TestAssertion
impl TestAssertion
pub const fn new(kind: TestAssertionKind) -> Self
pub fn with_label(kind: TestAssertionKind, label: impl Into<String>) -> Self
pub const fn kind(&self) -> TestAssertionKind
pub fn label(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for TestAssertion
impl Clone for TestAssertion
Source§fn clone(&self) -> TestAssertion
fn clone(&self) -> TestAssertion
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 TestAssertion
impl Debug for TestAssertion
Source§impl Hash for TestAssertion
impl Hash for TestAssertion
Source§impl PartialEq for TestAssertion
impl PartialEq for TestAssertion
Source§fn eq(&self, other: &TestAssertion) -> bool
fn eq(&self, other: &TestAssertion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TestAssertion
impl StructuralPartialEq for TestAssertion
Auto Trait Implementations§
impl Freeze for TestAssertion
impl RefUnwindSafe for TestAssertion
impl Send for TestAssertion
impl Sync for TestAssertion
impl Unpin for TestAssertion
impl UnsafeUnpin for TestAssertion
impl UnwindSafe for TestAssertion
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