Trait OverflowingShl

Source
pub trait OverflowingShl: Sized {
    // Required method
    fn overflowing_shl(self, rhs: u32) -> (Self, bool);
}

Required Methods§

Source

fn overflowing_shl(self, rhs: u32) -> (Self, bool)

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

Source§

fn overflowing_shl(self, rhs: u32) -> (u8, bool)

Source§

impl OverflowingShl for u16

Source§

fn overflowing_shl(self, rhs: u32) -> (u16, bool)

Source§

impl OverflowingShl for u32

Source§

fn overflowing_shl(self, rhs: u32) -> (u32, bool)

Source§

impl OverflowingShl for u64

Source§

fn overflowing_shl(self, rhs: u32) -> (u64, bool)

Implementors§

Source§

impl<T: MachineWord, const N: usize> OverflowingShl for FixedUInt<T, N>