pub trait ConstWrappingShl: Sized + ConstOverflowingShl {
// Required method
fn wrapping_shl(&self, rhs: u32) -> Self;
}Expand description
Const-compatible wrapping left shift.
Required Methods§
Sourcefn wrapping_shl(&self, rhs: u32) -> Self
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.