pub trait Compareable {
// Required method
fn compare(&self, other: &Self, operator: Operator) -> bool;
}Expand description
Helper to bind compare with our custom Operator to a struct
Required Methods§
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.