Skip to main content

extract_bits

Function extract_bits 

Source
pub fn extract_bits<const HIGH_BIT: usize, const LOW_BIT: usize, R: BitsTarget, S: BitsSource>(
    input: S,
) -> R
Expand description

Extracts the bit range [HIGH_BIT:LOW_BIT] (inclusive) from a numerical input.