Constant bitfrob::U8_SCALE_1_TO_8

source ·
pub const U8_SCALE_1_TO_8: u8 = 0b_11111111;
Expand description

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