pub trait RoundInto<T>{
// Required method
fn round_into(self) -> T;
}
Expand description
Types providing methods to round their values to fit a given type T
.
Required Methods§
Sourcefn round_into(self) -> T
fn round_into(self) -> T
Return a new T
instance with a value equivalent to self
rounded to
a number of fractional digits implied by T
.
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.