Trait malachite_base::num::comparison::traits::EqAbs

source ·
pub trait EqAbs<Rhs: ?Sized = Self> {
    // Required method
    fn eq_abs(&self, other: &Rhs) -> bool;

    // Provided method
    fn ne_abs(&self, other: &Rhs) -> bool { ... }
}
Expand description

Determines equality between the absolute values of two numbers.

Required Methods§

source

fn eq_abs(&self, other: &Rhs) -> bool

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

Provided Methods§

source

fn ne_abs(&self, other: &Rhs) -> bool

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

§Worst-case complexity

Same as the time and additional memory complexity of eq_abs.

Implementations on Foreign Types§

source§

impl EqAbs for i8

source§

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

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

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl EqAbs for i16

source§

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

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

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl EqAbs for i32

source§

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

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

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl EqAbs for i64

source§

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

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

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl EqAbs for i128

source§

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

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

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl EqAbs for isize

source§

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

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

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl EqAbs for u8

source§

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

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

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

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl EqAbs for u16

source§

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

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

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

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl EqAbs for u32

source§

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

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

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

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl EqAbs for u64

source§

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

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

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

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl EqAbs for u128

source§

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

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

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

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl EqAbs for usize

source§

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

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

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

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Implementors§