Trait relp_num::Abs[][src]

pub trait Abs: Neg<Output = Self> + Ord + Zero {
    fn abs(self) -> Self { ... }
}
Expand description

Absolute value of a number.

Automatically implemented for all types satisfying the trait’s bounds.

Provided methods

The absolute value of a number.

Compute the additive inverse if the number is smaller than the additive identity.

Implementors