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

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§