Compareable

Trait Compareable 

Source
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§

Source

fn compare(&self, other: &Self, operator: Operator) -> bool

Compare self with against using the given Operator

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§