Skip to main content

SignedIntValue

Trait SignedIntValue 

Source
pub trait SignedIntValue: IntValue {
    // Required method
    fn negate(&self) -> Self;
}

Required Methods§

Source

fn negate(&self) -> Self

Multiply self by -1.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SignedIntValue for i8

Source§

fn negate(&self) -> Self

Source§

impl SignedIntValue for i16

Source§

fn negate(&self) -> Self

Source§

impl SignedIntValue for i32

Source§

fn negate(&self) -> Self

Source§

impl SignedIntValue for i64

Source§

fn negate(&self) -> Self

Implementors§