Function core::intrinsics::unchecked_shr  
const: 1.40.0 · source · pub const unsafe extern "rust-intrinsic" fn unchecked_shr<T: Copy>(
    x: T,
    y: T
) -> T🔬This is a nightly-only experimental API. (
core_intrinsics)Expand description
执行未经检查的右移,导致 y < 0 或 y >= N 出现不确定的行为,其中 N 是 T 的宽度 (以位为单位)。
可通过 checked_shr 方法在整数原语上使用此内部函数的安全包装。
例如,
u32::checked_shr