Trait dashu_float::ops::Abs

source ·
pub trait Abs {
    type Output;

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

Absolute value.

§Examples

use dashu_base::Abs;
assert_eq!((-5).abs(), 5);

Required Associated Types§

Required Methods§

source

fn abs(self) -> Self::Output

Implementations on Foreign Types§

source§

impl Abs for &IBig

§

type Output = IBig

source§

fn abs(self) -> IBig

source§

impl Abs for f32

§

type Output = f32

source§

fn abs(self) -> <f32 as Abs>::Output

source§

impl Abs for f64

§

type Output = f64

source§

fn abs(self) -> <f64 as Abs>::Output

source§

impl Abs for i8

§

type Output = i8

source§

fn abs(self) -> <i8 as Abs>::Output

source§

impl Abs for i16

§

type Output = i16

source§

fn abs(self) -> <i16 as Abs>::Output

source§

impl Abs for i32

§

type Output = i32

source§

fn abs(self) -> <i32 as Abs>::Output

source§

impl Abs for i64

§

type Output = i64

source§

fn abs(self) -> <i64 as Abs>::Output

source§

impl Abs for i128

§

type Output = i128

source§

fn abs(self) -> <i128 as Abs>::Output

source§

impl Abs for isize

§

type Output = isize

source§

fn abs(self) -> <isize as Abs>::Output

source§

impl Abs for IBig

§

type Output = IBig

source§

fn abs(self) -> IBig

Implementors§

source§

impl<R: Round, const B: Word> Abs for FBig<R, B>

§

type Output = FBig<R, B>