newnum

Trait Negative

Source
pub trait Negative: MaybeSigned {
    // Required method
    fn neg_abs(self) -> Self;
}

Required Methods§

Source

fn neg_abs(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 Negative for f32

Source§

fn neg_abs(self) -> Self

Source§

impl Negative for f64

Source§

fn neg_abs(self) -> Self

Source§

impl Negative for i8

Source§

fn neg_abs(self) -> Self

Source§

impl Negative for i16

Source§

fn neg_abs(self) -> Self

Source§

impl Negative for i32

Source§

fn neg_abs(self) -> Self

Source§

impl Negative for i64

Source§

fn neg_abs(self) -> Self

Source§

impl Negative for i128

Source§

fn neg_abs(self) -> Self

Source§

impl Negative for isize

Source§

fn neg_abs(self) -> Self

Implementors§