Trait malachite_base::num::conversion::traits::OverflowingInto

source ·
pub trait OverflowingInto<T>: Sized {
    // Required method
    fn overflowing_into(self) -> (T, bool);
}
Expand description

Converts a value from one type to another, where if the conversion is not exact the result will wrap around. The result is returned along with a bool that indicates whether wrapping has occurred.

It is recommended that this trait is not implemented directly; it is automatically implemented when OverflowingFrom is implemented.

Required Methods§

source

fn overflowing_into(self) -> (T, bool)

Object Safety§

This trait is not object safe.

Implementors§