SignedIntDType

Trait SignedIntDType 

Source
pub trait SignedIntDType: IntDType + Signed {
    // Required methods
    fn abs(self) -> Self;
    fn neg(self) -> Self;
}

Required Methods§

Source

fn abs(self) -> Self

Source

fn neg(self) -> 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 SignedIntDType for i16

Source§

fn abs(self) -> i16

Source§

fn neg(self) -> i16

Source§

impl SignedIntDType for i32

Source§

fn abs(self) -> i32

Source§

fn neg(self) -> i32

Implementors§