Trait const_ops::Neg

source ·
pub trait Neg {
    type Output;

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

Required Associated Types§

Required Methods§

source

fn neg(self) -> Self::Output

Implementations on Foreign Types§

source§

impl Neg for i32

§

type Output = i32

source§

const fn neg(self) -> i32

source§

impl Neg for f64

§

type Output = f64

source§

const fn neg(self) -> f64

source§

impl Neg for i8

§

type Output = i8

source§

const fn neg(self) -> i8

source§

impl Neg for isize

§

type Output = isize

source§

const fn neg(self) -> isize

source§

impl Neg for f32

§

type Output = f32

source§

const fn neg(self) -> f32

source§

impl Neg for i128

§

type Output = i128

source§

const fn neg(self) -> i128

source§

impl Neg for i64

§

type Output = i64

source§

const fn neg(self) -> i64

source§

impl Neg for i16

§

type Output = i16

source§

const fn neg(self) -> i16

Implementors§