Trait 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§

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.

Implementors§

Source§

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