Trait malachite_base::num::arithmetic::traits::AbsDiff

source ·
pub trait AbsDiff<RHS = Self> {
    type Output;

    // Required method
    fn abs_diff(self, other: RHS) -> Self::Output;
}
Expand description

Subtracts two numbers and takes the absolute value of the difference.

Required Associated Types§

Required Methods§

source

fn abs_diff(self, other: RHS) -> Self::Output

Implementations on Foreign Types§

source§

impl AbsDiff for i8

source§

fn abs_diff(self, other: i8) -> u8

This is a wrapper over the abs_diff functions in the standard library, for example this one.

§

type Output = u8

source§

impl AbsDiff for i16

source§

fn abs_diff(self, other: i16) -> u16

This is a wrapper over the abs_diff functions in the standard library, for example this one.

§

type Output = u16

source§

impl AbsDiff for i32

source§

fn abs_diff(self, other: i32) -> u32

This is a wrapper over the abs_diff functions in the standard library, for example this one.

§

type Output = u32

source§

impl AbsDiff for i64

source§

fn abs_diff(self, other: i64) -> u64

This is a wrapper over the abs_diff functions in the standard library, for example this one.

§

type Output = u64

source§

impl AbsDiff for i128

source§

fn abs_diff(self, other: i128) -> u128

This is a wrapper over the abs_diff functions in the standard library, for example this one.

§

type Output = u128

source§

impl AbsDiff for isize

source§

fn abs_diff(self, other: isize) -> usize

This is a wrapper over the abs_diff functions in the standard library, for example this one.

§

type Output = usize

source§

impl AbsDiff for u8

source§

fn abs_diff(self, other: u8) -> u8

This is a wrapper over the abs_diff functions in the standard library, for example this one.

§

type Output = u8

source§

impl AbsDiff for u16

source§

fn abs_diff(self, other: u16) -> u16

This is a wrapper over the abs_diff functions in the standard library, for example this one.

§

type Output = u16

source§

impl AbsDiff for u32

source§

fn abs_diff(self, other: u32) -> u32

This is a wrapper over the abs_diff functions in the standard library, for example this one.

§

type Output = u32

source§

impl AbsDiff for u64

source§

fn abs_diff(self, other: u64) -> u64

This is a wrapper over the abs_diff functions in the standard library, for example this one.

§

type Output = u64

source§

impl AbsDiff for u128

source§

fn abs_diff(self, other: u128) -> u128

This is a wrapper over the abs_diff functions in the standard library, for example this one.

§

type Output = u128

source§

impl AbsDiff for usize

source§

fn abs_diff(self, other: usize) -> usize

This is a wrapper over the abs_diff functions in the standard library, for example this one.

§

type Output = usize

Implementors§