Trait CustomOrd

Source
pub trait CustomOrd {
    // Required method
    fn custom_cmp(&self, other: &Self) -> Ordering;
}
Expand description

Manager for float based comparisons

Required Methods§

Source

fn custom_cmp(&self, other: &Self) -> Ordering

Custom comparison

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.

Implementations on Foreign Types§

Source§

impl CustomOrd for f32

Source§

fn custom_cmp(&self, other: &Self) -> Ordering

Source§

impl CustomOrd for f64

Source§

fn custom_cmp(&self, other: &Self) -> Ordering

Source§

impl CustomOrd for i64

Source§

fn custom_cmp(&self, other: &Self) -> Ordering

Source§

impl CustomOrd for u64

Source§

fn custom_cmp(&self, other: &Self) -> Ordering

Implementors§