rgeometry

Trait TotalOrd

Source
pub trait TotalOrd {
    // Required method
    fn total_cmp(&self, other: &Self) -> Ordering;

    // Provided methods
    fn total_min(self, other: Self) -> Self
       where Self: Sized { ... }
    fn total_max(self, other: Self) -> Self
       where Self: Sized { ... }
}

Required Methods§

Source

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

Provided Methods§

Source

fn total_min(self, other: Self) -> Self
where Self: Sized,

Source

fn total_max(self, other: Self) -> Self
where Self: Sized,

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 TotalOrd for f32

Source§

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

Source§

impl TotalOrd for f64

Source§

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

Source§

impl TotalOrd for i8

Source§

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

Source§

impl TotalOrd for i16

Source§

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

Source§

impl TotalOrd for i32

Source§

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

Source§

impl TotalOrd for i64

Source§

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

Source§

impl TotalOrd for isize

Source§

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

Source§

impl TotalOrd for u32

Source§

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

Source§

impl TotalOrd for BigInt

Source§

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

Source§

impl TotalOrd for NotNan<f32>

Source§

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

Source§

impl TotalOrd for NotNan<f64>

Source§

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

Source§

impl TotalOrd for OrderedFloat<f32>

Source§

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

Source§

impl TotalOrd for OrderedFloat<f64>

Source§

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

Source§

impl TotalOrd for BigRational

Source§

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

Source§

impl<A: TotalOrd> TotalOrd for &A

Source§

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

Source§

impl<A: TotalOrd, B: TotalOrd> TotalOrd for (A, B)

Source§

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

Implementors§

Source§

impl<T: TotalOrd> TotalOrd for Cursor<'_, T>

Source§

impl<T: TotalOrd, const N: usize> TotalOrd for Point<T, N>