Trait AndModifier

Source
pub trait AndModifier<T> {
    // Required method
    fn and(self) -> Self;
}
Expand description

AND modifier trait for chaining assertions

Required Methods§

Source

fn and(self) -> Self

Creates an AND-chained assertion that allows for multiple assertions on the same value This provides a fluent API for multiple assertions: expect(value).to_be_greater_than(5).and().to_be_less_than(10)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§