pub trait ConstCheckedShl: Sized + ConstOverflowingShl {
// Required method
fn checked_shl(&self, rhs: u32) -> Option<Self>;
}Expand description
Const-compatible checked left shift.
Required Methods§
Sourcefn checked_shl(&self, rhs: u32) -> Option<Self>
fn checked_shl(&self, rhs: u32) -> Option<Self>
Checked shift left. Returns None if the shift amount exceeds 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.