[][src]Trait arsert_failure::ExpressionInfo

pub trait ExpressionInfo: Display {
    fn expression(&self) -> String;
fn values(self) -> HashMap<String, Box<dyn Debug>>;
fn expression_parts(&self) -> Vec<String>; }

A trait representing information about the expression that led to a failed assertion.

Required methods

fn expression(&self) -> String

Returns the entire expression, represented as Rust source code in a String.

fn values(self) -> HashMap<String, Box<dyn Debug>>

Returns the actual values that contributed to the assertion failure.

fn expression_parts(&self) -> Vec<String>

Returns the parts of the expression, broken into rust source code in a String.

Loading content...

Implementors

impl ExpressionInfo for SimpleAssertionFailure
[src]

impl<L: 'static + Debug, R: 'static + Debug> ExpressionInfo for BinaryAssertionFailure<L, R>
[src]

impl<V: 'static + Debug> ExpressionInfo for UnaryAssertionFailure<V>
[src]

Loading content...