Trait malachite_base::num::comparison::traits::OrdAbs

source ·
pub trait OrdAbs: Eq + PartialOrdAbs<Self> {
    // Required method
    fn cmp_abs(&self, other: &Self) -> Ordering;
}
Expand description

Compares the absolute values of two numbers.

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl OrdAbs for i8

source§

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

Compares the absolute values of two numbers, taking both by reference.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OrdAbs for i16

source§

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

Compares the absolute values of two numbers, taking both by reference.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OrdAbs for i32

source§

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

Compares the absolute values of two numbers, taking both by reference.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OrdAbs for i64

source§

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

Compares the absolute values of two numbers, taking both by reference.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OrdAbs for i128

source§

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

Compares the absolute values of two numbers, taking both by reference.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OrdAbs for isize

source§

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

Compares the absolute values of two numbers, taking both by reference.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OrdAbs for u8

source§

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

Compares the absolute values of two numbers, taking both by reference.

For unsigned values, this is the same as ordinary comparison.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OrdAbs for u16

source§

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

Compares the absolute values of two numbers, taking both by reference.

For unsigned values, this is the same as ordinary comparison.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OrdAbs for u32

source§

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

Compares the absolute values of two numbers, taking both by reference.

For unsigned values, this is the same as ordinary comparison.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OrdAbs for u64

source§

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

Compares the absolute values of two numbers, taking both by reference.

For unsigned values, this is the same as ordinary comparison.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OrdAbs for u128

source§

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

Compares the absolute values of two numbers, taking both by reference.

For unsigned values, this is the same as ordinary comparison.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OrdAbs for usize

source§

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

Compares the absolute values of two numbers, taking both by reference.

For unsigned values, this is the same as ordinary comparison.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Implementors§