num_traits

Module identities

source

Traits§

  • Defines an associated constant representing the multiplicative identity element for Self.
  • Defines an associated constant representing the additive identity element for Self.
  • Defines a multiplicative identity element for Self.
  • Defines an additive identity element for Self.

Functions§

  • Returns the multiplicative identity, 1.
  • Returns the additive identity, 0.