Module num_traits::sign

source ยท

Macrosยง

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.