Module rust_decimal::prelude

source ·
Expand description

A convenience module appropriate for glob imports (use rust_decimal::prelude::*;).

Re-exports§

Traits§

  • A generic trait for converting a number to a value.
  • Parse a value from a string
  • Trait exposing various mathematical operations that can be applied using a Decimal. This is only present when the maths feature has been enabled.
  • Defines a multiplicative identity element for Self.
  • Useful functions for signed numbers (i.e. numbers that can be negative).
  • A generic trait for converting a value to a number.
  • Defines an additive identity element for Self.