[][src]Struct k9::assertions::Assertion

pub struct Assertion {
    pub description: Option<String>,
    pub name: String,
    pub args_str: String,
    pub failure_message: String,
}

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

impl Debug for Assertion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.