Function bitfrob::u8_bit_split_2x4

source ·
pub const fn u8_bit_split_2x4(byte: u8) -> [u8; 4]
Expand description

Splits a byte into 2-bit chunks.

Bit 0 of the input will be in the first element of the output.