Module sign

Source

Macrosยง

empty_trait_impl ๐Ÿ”’
signed_float_impl ๐Ÿ”’
signed_impl ๐Ÿ”’

Traitsยง

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

Functionsยง

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