Trait Wrappingable

Source
pub trait Wrappingable: Sized
where Wrapping<Self>: Copy + Bounded + Zero + One + Eq + Ord + Default + FromStr + Display + Add<Output = Wrapping<Self>> + Sub<Output = Wrapping<Self>> + Mul<Output = Wrapping<Self>> + Div<Output = Wrapping<Self>> + Rem<Output = Wrapping<Self>> + BitAnd<Output = Wrapping<Self>> + BitOr<Output = Wrapping<Self>> + BitXor<Output = Wrapping<Self>> + Shl<u32, Output = Wrapping<Self>> + Shr<u32, Output = Wrapping<Self>> + AddAssign + SubAssign + MulAssign + DivAssign + RemAssign + BitAndAssign + BitOrAssign + BitXorAssign + ShlAssign<u32> + ShrAssign<u32> + Not<Output = Wrapping<Self>> + Add<Self, Output = Wrapping<Self>> + Sub<Self, Output = Wrapping<Self>> + Mul<Self, Output = Wrapping<Self>> + Div<Self, Output = Wrapping<Self>> + Rem<Self, Output = Wrapping<Self>> + BitAnd<Self, Output = Wrapping<Self>> + BitOr<Self, Output = Wrapping<Self>> + BitXor<Self, Output = Wrapping<Self>> + AddAssign<Self> + SubAssign<Self> + MulAssign<Self> + DivAssign<Self> + RemAssign<Self> + BitAndAssign<Self> + BitOrAssign<Self> + BitXorAssign<Self>,
{ // Provided methods fn to_wrapping(self) -> Wrapping<Self> { ... } fn from_wrapping(w: Wrapping<Self>) -> Self { ... } }

Provided Methods§

Source

fn to_wrapping(self) -> Wrapping<Self>

Source

fn from_wrapping(w: Wrapping<Self>) -> Self

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.

Implementations on Foreign Types§

Source§

impl Wrappingable for i8

Source§

impl Wrappingable for i16

Source§

impl Wrappingable for i32

Source§

impl Wrappingable for i64

Source§

impl Wrappingable for i128

Source§

impl Wrappingable for isize

Source§

impl Wrappingable for u8

Source§

impl Wrappingable for u16

Source§

impl Wrappingable for u32

Source§

impl Wrappingable for u64

Source§

impl Wrappingable for u128

Source§

impl Wrappingable for usize

Implementors§