Trait malachite_base::num::arithmetic::traits::WrappingAbs

source ·
pub trait WrappingAbs {
    type Output;

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

Takes the absolute value of a number, wrapping around at the boundary of the type.

Required Associated Types§

Required Methods§

source

fn wrapping_abs(self) -> Self::Output

Implementations on Foreign Types§

source§

impl WrappingAbs for i8

source§

fn wrapping_abs(self) -> i8

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

§

type Output = i8

source§

impl WrappingAbs for i16

source§

fn wrapping_abs(self) -> i16

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

§

type Output = i16

source§

impl WrappingAbs for i32

source§

fn wrapping_abs(self) -> i32

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

§

type Output = i32

source§

impl WrappingAbs for i64

source§

fn wrapping_abs(self) -> i64

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

§

type Output = i64

source§

impl WrappingAbs for i128

source§

fn wrapping_abs(self) -> i128

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

§

type Output = i128

source§

impl WrappingAbs for isize

source§

fn wrapping_abs(self) -> isize

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

§

type Output = isize

Implementors§