Trait comlib_math::Signed[][src]

pub trait Signed: Numeric + Neg<Output = Self> {
    fn get_sign(self) -> Sign;
fn get_abs(self) -> Self; }
Expand description

Trait implemented by signed numbers.

Contains methods applicable to signed numbers only.

Required methods

Returns the sign of the number.

Returns the absolute value of the number.

Implementations on Foreign Types

Implementors