Skip to main content

TotalCmp

Trait TotalCmp 

Source
pub trait TotalCmp:
    Copy
    + Send
    + Sync {
    // Required method
    fn total_cmp(&self, other: &Self) -> Ordering;
}
Expand description

Total ordering for sorting — floats use total_cmp (NaN sorts last), integers and bool use their natural Ord.

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TotalCmp for bool

Source§

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

Source§

impl TotalCmp for f32

Source§

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

Source§

impl TotalCmp for f64

Source§

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

Source§

impl TotalCmp for i8

Source§

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

Source§

impl TotalCmp for i16

Source§

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

Source§

impl TotalCmp for i32

Source§

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

Source§

impl TotalCmp for i64

Source§

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

Source§

impl TotalCmp for u8

Source§

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

Source§

impl TotalCmp for u16

Source§

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

Source§

impl TotalCmp for u32

Source§

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

Source§

impl TotalCmp for u64

Source§

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

Implementors§