Skip to main content

ConstWrappingShr

Trait ConstWrappingShr 

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

Const-compatible wrapping right shift.

Required Methods§

Source

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

Wrapping shift right. 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".

Implementations on Foreign Types§

Source§

impl ConstWrappingShr for u8

Source§

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

Source§

impl ConstWrappingShr for u16

Source§

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

Source§

impl ConstWrappingShr for u32

Source§

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

Source§

impl ConstWrappingShr for u64

Source§

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

Source§

impl ConstWrappingShr for u128

Source§

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

Implementors§

Source§

impl<T: ConstMachineWord + MachineWord, const N: usize, P: Personality> ConstWrappingShr for FixedUInt<T, N, P>