[−][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: String
the name of the assertion macro that was invoked. e.g. assert_equals
args_str: String
string containing all arguments passed to the assertion macro. e.g. "1 + 1, my_var"
failure_message: String
Assertion 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
impl Send for Assertion
impl Sync for Assertion
impl Unpin for Assertion
impl UnwindSafe for Assertion
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> 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>,