Trait RoundingMode

Source
pub trait RoundingMode {
    // Required method
    fn round(int_value: BigUint, carrier: u8) -> BigUint;
}
Expand description

A trait for rounding when scaling down

Required Methods§

Source

fn round(int_value: BigUint, carrier: u8) -> BigUint

Scale on int_value where carrier is the last digit that was already dropped.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§