snarkvm_console_collections::integer_type

Trait CheckedAbs

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

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl CheckedAbs for i8

Source§

impl CheckedAbs for i16

Source§

impl CheckedAbs for i32

Source§

impl CheckedAbs for i64

Source§

impl CheckedAbs for i128

Source§

impl CheckedAbs for u8

Source§

impl CheckedAbs for u16

Source§

impl CheckedAbs for u32

Source§

impl CheckedAbs for u64

Source§

impl CheckedAbs for u128

Implementors§