Trait OrderMethodValue

Source
pub trait OrderMethodValue:
    Debug
    + Default
    + Copy
    + Clone
    + Eq
    + PartialEq
    + Ord
    + PartialOrd
    + Hash
    + FromStr<Err = ParseIntError> {
    // Required methods
    fn zero() -> Self;
    fn one() -> Self;
    fn abs(&self) -> Self;
}
Expand description

Value for OrderMethod. This should be i8 or i16.

Required Methods§

Source

fn zero() -> Self

Source

fn one() -> Self

Source

fn abs(&self) -> Self

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 OrderMethodValue for i8

Source§

fn zero() -> i8

Source§

fn one() -> i8

Source§

fn abs(&self) -> i8

Source§

impl OrderMethodValue for i16

Source§

fn zero() -> i16

Source§

fn one() -> i16

Source§

fn abs(&self) -> i16

Implementors§