Trait WrappingInto

Source
pub trait WrappingInto<T>: Sized {
    // Required method
    fn wrapping_into(self) -> T;
}
Expand description

Converts a value from one type to another, where if the conversion is not exact the result will wrap around.

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

Required Methods§

Source

fn wrapping_into(self) -> T

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: WrappingFrom<T>> WrappingInto<U> for T