pub trait Round: Copy {
type Reverse: Round;
// Required method
fn round_low_part<F: FnOnce() -> Ordering>(
integer: &IBig,
low_sign: Sign,
low_half_test: F,
) -> Rounding;
// Provided methods
fn round_fract<const B: Word>(
integer: &IBig,
fract: IBig,
precision: usize,
) -> Rounding { ... }
fn round_ratio(integer: &IBig, num: IBig, den: &IBig) -> Rounding { ... }
}
Expand description
A trait describing the rounding strategy
Required Associated Types§
Required Methods§
Provided Methods§
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.