Trait malachite_base::num::arithmetic::traits::UnsignedAbs

source ·
pub trait UnsignedAbs {
    type Output;

    // Required method
    fn unsigned_abs(self) -> Self::Output;
}
Expand description

Takes the absolute value of a number and converts to the unsigned equivalent.

Required Associated Types§

Required Methods§

source

fn unsigned_abs(self) -> Self::Output

Implementations on Foreign Types§

source§

impl UnsignedAbs for i8

source§

fn unsigned_abs(self) -> u8

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

§

type Output = u8

source§

impl UnsignedAbs for i16

source§

fn unsigned_abs(self) -> u16

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

§

type Output = u16

source§

impl UnsignedAbs for i32

source§

fn unsigned_abs(self) -> u32

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

§

type Output = u32

source§

impl UnsignedAbs for i64

source§

fn unsigned_abs(self) -> u64

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

§

type Output = u64

source§

impl UnsignedAbs for i128

source§

fn unsigned_abs(self) -> u128

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

§

type Output = u128

source§

impl UnsignedAbs for isize

source§

fn unsigned_abs(self) -> usize

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

§

type Output = usize

Implementors§