Trait rbatis_codegen::ops::Neg

source ·
pub trait Neg {
    type Output;

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

Required Associated Types§

source

type Output

The resulting type after applying the - operator.

Required Methods§

source

fn neg(self) -> Self::Output

Performs the unary - operation.

§Example
let x: i32 = 12;
assert_eq!(-x, -12);

Implementations on Foreign Types§

source§

impl Neg for &Value

§

type Output = Value

source§

fn neg(self) -> Self::Output

source§

impl Neg for &mut Value

§

type Output = Value

source§

fn neg(self) -> Self::Output

source§

impl Neg for Value

§

type Output = Value

source§

fn neg(self) -> Self::Output

Implementors§