[−][src]Trait arsert_failure::ExpressionInfo
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.
Implementors
impl ExpressionInfo for SimpleAssertionFailure
[src]
impl ExpressionInfo for SimpleAssertionFailure
fn expression(&self) -> String | [src] |
fn values(self) -> HashMap<String, Box<dyn Debug>> | [src] |
fn expression_parts(&self) -> Vec<String> | [src] |
impl<L: 'static + Debug, R: 'static + Debug> ExpressionInfo for BinaryAssertionFailure<L, R>
[src]
impl<L: 'static + Debug, R: 'static + Debug> ExpressionInfo for BinaryAssertionFailure<L, R>
fn expression(&self) -> String | [src] |
fn values(self) -> HashMap<String, Box<dyn Debug>> | [src] |
fn expression_parts(&self) -> Vec<String> | [src] |
impl<V: 'static + Debug> ExpressionInfo for UnaryAssertionFailure<V>
[src]
impl<V: 'static + Debug> ExpressionInfo for UnaryAssertionFailure<V>