Trait 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§