Trait malachite_base::num::conversion::traits::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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, U: WrappingFrom<T>> WrappingInto<U> for T