pub trait RoundFloat {
// Required method
fn round_float(self, decimal: i32) -> Self
where Self: Sized;
}Expand description
Trait for rounding floating-point numbers to a specified number of decimal places.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".