Trait OptOrd

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

Ordering within Optioned

Required Methods§

Source

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

compare this Optioned with another

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 OptOrd for char

Source§

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

Source§

impl OptOrd for f32

Source§

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

Source§

impl OptOrd for f64

Source§

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

Source§

impl OptOrd for i8

Source§

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

Source§

impl OptOrd for i16

Source§

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

Source§

impl OptOrd for i32

Source§

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

Source§

impl OptOrd for i64

Source§

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

Source§

impl OptOrd for isize

Source§

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

Source§

impl OptOrd for u8

Source§

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

Source§

impl OptOrd for u16

Source§

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

Source§

impl OptOrd for u32

Source§

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

Source§

impl OptOrd for u64

Source§

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

Source§

impl OptOrd for usize

Source§

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

Implementors§