Enum fixed_decimal::decimal::RoundingMode
source · [−]pub enum RoundingMode {
Unnecessary,
Truncate,
HalfExpand,
}
Expand description
Specifies how numbers should be rounded
Variants
Unnecessary
Return an error if the number has trailing nonzero digits that need to be rounded.
Truncate
Round toward zero (remove, or truncate, all trailing digits).
HalfExpand
Round ties away from zero.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RoundingMode
impl Send for RoundingMode
impl Sync for RoundingMode
impl Unpin for RoundingMode
impl UnwindSafe for RoundingMode
Blanket Implementations
Mutably borrows from an owned value. Read more