Trait ValueOrd

Source
pub trait ValueOrd {
    // Required methods
    fn lt_g(&self, other: &Self) -> StdResult<bool>;
    fn le_g(&self, other: &Self) -> StdResult<bool>;
    fn bt_g(&self, other: &Self) -> StdResult<bool>;
    fn be_g(&self, other: &Self) -> StdResult<bool>;
    fn equal(&self, other: &Self) -> bool;
}

Required Methods§

Source

fn lt_g(&self, other: &Self) -> StdResult<bool>

Source

fn le_g(&self, other: &Self) -> StdResult<bool>

Source

fn bt_g(&self, other: &Self) -> StdResult<bool>

Source

fn be_g(&self, other: &Self) -> StdResult<bool>

Source

fn equal(&self, other: &Self) -> bool

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 ValueOrd for Value

Only supporting numbers and big numbers for now

Source§

fn lt_g(&self, other: &Self) -> StdResult<bool>

Source§

fn le_g(&self, other: &Self) -> StdResult<bool>

Source§

fn bt_g(&self, other: &Self) -> StdResult<bool>

Source§

fn be_g(&self, other: &Self) -> StdResult<bool>

Source§

fn equal(&self, other: &Self) -> bool

Implementors§