Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

shift_bit

Returns the bit value at the specified position (power of 2)

Arguments

  • number - The bit position (0-7)

Returns

  • u8 - The bit value (1 shifted left by position)

Fully qualified path: alexandria_data_structures::bit_array::shift_bit

pub fn shift_bit(number: u32) -> u8