pub trait CheckedAbs: Sized {
    // Required method
    fn checked_abs(&self) -> Option<Self>;
}

Required Methods§

fn checked_abs(&self) -> Option<Self>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl CheckedAbs for i8

§

fn checked_abs(&self) -> Option<i8>

§

impl CheckedAbs for i16

§

fn checked_abs(&self) -> Option<i16>

§

impl CheckedAbs for i32

§

fn checked_abs(&self) -> Option<i32>

§

impl CheckedAbs for i64

§

fn checked_abs(&self) -> Option<i64>

§

impl CheckedAbs for i128

§

fn checked_abs(&self) -> Option<i128>

§

impl CheckedAbs for u8

§

fn checked_abs(&self) -> Option<u8>

§

impl CheckedAbs for u16

§

fn checked_abs(&self) -> Option<u16>

§

impl CheckedAbs for u32

§

fn checked_abs(&self) -> Option<u32>

§

impl CheckedAbs for u64

§

fn checked_abs(&self) -> Option<u64>

§

impl CheckedAbs for u128

§

fn checked_abs(&self) -> Option<u128>

Implementors§