Trait malachite_base::num::conversion::traits::RoundingInto
source · 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)
Object Safety§
This trait is not object safe.