Comparable

Trait Comparable 

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

A custom version of Ord that only exists to we can implement it for the Values in our heap

Required Methods§

Source

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

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 Comparable for Option<f32>

Source§

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

Source§

impl Comparable for Option<f64>

Source§

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

Source§

impl Comparable for Option<i8>

Source§

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

Source§

impl Comparable for Option<i16>

Source§

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

Source§

impl Comparable for Option<i32>

Source§

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

Source§

impl Comparable for Option<i64>

Source§

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

Source§

impl Comparable for Option<i128>

Source§

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

Source§

impl Comparable for Option<u8>

Source§

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

Source§

impl Comparable for Option<u16>

Source§

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

Source§

impl Comparable for Option<u32>

Source§

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

Source§

impl Comparable for Option<u64>

Source§

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

Source§

impl Comparable for Option<String>

Source§

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

Source§

impl Comparable for Option<f16>

Source§

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

Source§

impl Comparable for Option<IntervalDayTime>

Source§

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

Source§

impl Comparable for Option<IntervalMonthDayNano>

Source§

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

Source§

impl Comparable for Option<i256>

Source§

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

Source§

impl Comparable for f32

Source§

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

Source§

impl Comparable for f64

Source§

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

Source§

impl Comparable for i8

Source§

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

Source§

impl Comparable for i16

Source§

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

Source§

impl Comparable for i32

Source§

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

Source§

impl Comparable for i64

Source§

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

Source§

impl Comparable for i128

Source§

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

Source§

impl Comparable for u8

Source§

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

Source§

impl Comparable for u16

Source§

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

Source§

impl Comparable for u32

Source§

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

Source§

impl Comparable for u64

Source§

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

Source§

impl Comparable for f16

Source§

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

Source§

impl Comparable for IntervalDayTime

Source§

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

Source§

impl Comparable for IntervalMonthDayNano

Source§

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

Source§

impl Comparable for i256

Source§

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

Implementors§