Trait OrModifier

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

OR modifier trait for chaining assertions

Required Methods§

Source

fn or(self) -> Self

Creates an OR-chained assertion that allows for multiple assertions on the same value This provides a fluent API for alternative assertions: expect(value).to_be_greater_than(100).or().to_be_less_than(0)

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§