pub trait ConstCheckedShr: Sized + ConstOverflowingShr {
// Required method
fn checked_shr(&self, rhs: u32) -> Option<Self>;
}Expand description
Const-compatible checked right shift.
Required Methods§
Sourcefn checked_shr(&self, rhs: u32) -> Option<Self>
fn checked_shr(&self, rhs: u32) -> Option<Self>
Checked shift right. 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.