[−][src]Struct k9::assertions::Assertion
Fields
description: Option<String>Description of what's being asserted to provide a bit more context in the error mesasge
name: Stringthe name of the assertion macro that was invoked. e.g. assert_equals
args_str: Stringstring containing all arguments passed to the assertion macro. e.g. "1 + 1, my_var"
failure_message: StringAssertion failure message, e.g. expected blah blah but got blah
Implementations
impl Assertion[src]
pub fn panic(&self)[src]
pub fn get_failure_message(&self) -> String[src]
pub fn assertion_expression(&self) -> String[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Assertion[src]
impl Send for Assertion[src]
impl Sync for Assertion[src]
impl Unpin for Assertion[src]
impl UnwindSafe for Assertion[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> FormattableForComparison for T where
T: Debug, [src]
T: Debug,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,