Trait polars_utils::total_ord::TotalOrd

source ·
pub trait TotalOrd: TotalEq {
    // Required method
    fn tot_cmp(&self, other: &Self) -> Ordering;

    // Provided methods
    fn tot_lt(&self, other: &Self) -> bool { ... }
    fn tot_gt(&self, other: &Self) -> bool { ... }
    fn tot_le(&self, other: &Self) -> bool { ... }
    fn tot_ge(&self, other: &Self) -> bool { ... }
}
Expand description

Alternative trait for Ord. By consistently using this we can still be generic w.r.t Ord while getting a total ordering for floats.

Required Methods§

source

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

Provided Methods§

source

fn tot_lt(&self, other: &Self) -> bool

source

fn tot_gt(&self, other: &Self) -> bool

source

fn tot_le(&self, other: &Self) -> bool

source

fn tot_ge(&self, other: &Self) -> bool

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TotalOrd for &str

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for &[u8]

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for bool

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for char

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for f32

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for f64

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for i8

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for i16

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for i32

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for i64

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for i128

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for isize

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for u8

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for u16

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for u32

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for u64

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for u128

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for usize

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl TotalOrd for String

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl<T: TotalOrd> TotalOrd for Option<T>

source§

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

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl<T: TotalOrd, U: TotalOrd> TotalOrd for (T, U)

source§

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

Implementors§