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