Skip to main content

ConstWrappingShl

Trait ConstWrappingShl 

Source
pub trait ConstWrappingShl: Sized + ConstOverflowingShl {
    // Required method
    fn wrapping_shl(&self, rhs: u32) -> Self;
}
Expand description

Const-compatible wrapping left shift.

Required Methods§

Source

fn wrapping_shl(&self, rhs: u32) -> Self

Wrapping shift left. Shifts, masking the shift amount to the bit width.

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 ConstWrappingShl for u8

Source§

fn wrapping_shl(&self, rhs: u32) -> Self

Source§

impl ConstWrappingShl for u16

Source§

fn wrapping_shl(&self, rhs: u32) -> Self

Source§

impl ConstWrappingShl for u32

Source§

fn wrapping_shl(&self, rhs: u32) -> Self

Source§

impl ConstWrappingShl for u64

Source§

fn wrapping_shl(&self, rhs: u32) -> Self

Source§

impl ConstWrappingShl for u128

Source§

fn wrapping_shl(&self, rhs: u32) -> Self

Implementors§

Source§

impl<T: ConstMachineWord + MachineWord, const N: usize> ConstWrappingShl for FixedUInt<T, N>