ComparisonOperator

Trait ComparisonOperator 

Source
pub trait ComparisonOperator<T> {
    // Required method
    fn apply(a: &T, b: &T) -> bool;
}
Expand description

Trait for comparison operators.

Required Methods§

Source

fn apply(a: &T, b: &T) -> bool

Apply the operator to the two operands.

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§