Trait polars_utils::total_ord::ToTotalOrd

source ·
pub trait ToTotalOrd {
    type TotalOrdItem;
    type SourceItem;

    // Required methods
    fn to_total_ord(&self) -> Self::TotalOrdItem;
    fn peel_total_ord(ord_item: Self::TotalOrdItem) -> Self::SourceItem;
}
Expand description

This elides creating a TotalOrdWrap for types that don’t need it.

Required Associated Types§

Required Methods§

source

fn to_total_ord(&self) -> Self::TotalOrdItem

source

fn peel_total_ord(ord_item: Self::TotalOrdItem) -> Self::SourceItem

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToTotalOrd for bool

source§

impl ToTotalOrd for char

source§

impl ToTotalOrd for f32

source§

impl ToTotalOrd for f64

source§

impl ToTotalOrd for i8

source§

impl ToTotalOrd for i16

source§

impl ToTotalOrd for i32

source§

impl ToTotalOrd for i64

source§

impl ToTotalOrd for i128

source§

impl ToTotalOrd for isize

source§

impl ToTotalOrd for u8

source§

impl ToTotalOrd for u16

source§

impl ToTotalOrd for u32

source§

impl ToTotalOrd for u64

source§

impl ToTotalOrd for u128

source§

impl ToTotalOrd for usize

source§

impl ToTotalOrd for String

source§

impl<'a> ToTotalOrd for &'a str

§

type TotalOrdItem = &'a str

§

type SourceItem = &'a str

source§

fn to_total_ord(&self) -> Self::TotalOrdItem

source§

fn peel_total_ord(ord_item: Self::TotalOrdItem) -> Self::SourceItem

source§

impl<'a> ToTotalOrd for &'a [u8]

§

type TotalOrdItem = &'a [u8]

§

type SourceItem = &'a [u8]

source§

fn to_total_ord(&self) -> Self::TotalOrdItem

source§

fn peel_total_ord(ord_item: Self::TotalOrdItem) -> Self::SourceItem

source§

impl<T: Copy> ToTotalOrd for Option<T>

This is safe without needing to map the option value to TotalOrdWrap, since for example: TotalOrdWrap<Option<T>> implements Eq + Hash, iff: Option<T> implements TotalEq + TotalHash, iff: T implements TotalEq + TotalHash

source§

impl<T: ToTotalOrd> ToTotalOrd for &T

Implementors§