pub trait FixedWidthSignedInteger: FixedWidthUnsignedInteger + Neg<Output = Self> {
    // Required method
    fn fixed_abs(self) -> Self;
}
Expand description

Trait for an integer that includes negation

Required Methods§

source

fn fixed_abs(self) -> Self

Returns the absolute value of the number

Implementations on Foreign Types§

source§

impl FixedWidthSignedInteger for i16

source§

fn fixed_abs(self) -> Self

source§

impl FixedWidthSignedInteger for i32

source§

fn fixed_abs(self) -> Self

Implementors§