pub trait RoundingInto<T>: Sized {
// Required method
fn rounding_into(self, rm: RoundingMode) -> (T, Ordering);
}
Expand description
Converts a value from one type to another, where the conversion is made according to a specified
RoundingMode
. An Ordering
is also returned, indicating whether the returned value is
less than, equal to, or greater than the original value.
It is recommended that this trait is not implemented directly; it is automatically implemented
when RoundingFrom
is implemented.
Required Methods§
fn rounding_into(self, rm: RoundingMode) -> (T, Ordering)
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.