Constant bitfrob::U8_SCALE_2_TO_8

source ·
pub const U8_SCALE_2_TO_8: u8 = 0b_01010101;
Expand description

When used as a multiplier, scales a “2 bit” u8 to spread the value across all 8 bits.