Module num_traits::sign

source ·

Traits

Useful functions for signed numbers (i.e. numbers that can be negative).
A trait for values which cannot be negative

Functions

Computes the absolute value.
The positive difference of two numbers.
Returns the sign of the number.