[][src]Trait arsert::ExpressionInfo

pub trait ExpressionInfo: Display {
    fn expression(&self) -> String;
fn values(self) -> HashMap<String, Box<dyn Debug + 'static>, RandomState>;
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 + 'static>, RandomState>

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...

Implementations on Foreign Types

impl ExpressionInfo for SimpleAssertionFailure
[src]

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

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

Loading content...

Implementors

Loading content...