Module rust_decimal::prelude
source · Expand description
A convenience module appropriate for glob imports (use rust_decimal::prelude::*;
).
Re-exports
pub use crate::Decimal;
pub use crate::RoundingStrategy;
Traits
- A generic trait for converting a number to a value.
- Parse a value from a string
- 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
.