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§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, U: RoundingFrom<T>> RoundingInto<U> for T