Skip to main content

Abs

Trait Abs 

Source
pub trait Abs {
    type Output;

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

Required Associated Types§

Required Methods§

Source

fn abs(self) -> Self::Output

Implementations on Foreign Types§

Source§

impl Abs for f32

Source§

type Output = f32

Source§

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

Source§

impl Abs for f64

Source§

type Output = f64

Source§

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

Source§

impl Abs for i8

Source§

type Output = i8

Source§

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

Source§

impl Abs for i16

Source§

type Output = i16

Source§

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

Source§

impl Abs for i32

Source§

type Output = i32

Source§

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

Source§

impl Abs for i64

Source§

type Output = i64

Source§

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

Source§

impl Abs for isize

Source§

impl Abs for u8

Source§

type Output = u8

Source§

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

Source§

impl Abs for u16

Source§

type Output = u16

Source§

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

Source§

impl Abs for u32

Source§

type Output = u32

Source§

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

Source§

impl Abs for u64

Source§

type Output = u64

Source§

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

Source§

impl Abs for usize

Source§

impl<T> Abs for Saturating<T>
where T: Abs,

Source§

type Output = Saturating<<T as Abs>::Output>

Source§

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

Source§

impl<T> Abs for Wrapping<T>
where T: Abs,

Source§

type Output = Wrapping<<T as Abs>::Output>

Source§

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

Source§

impl<T, T2, const N: usize> Abs for [T; N]
where T: Abs<Output = T2>,

Implementors§