pub fn check_flags(byte: u8, mask: u8) -> boolExpand description
Return true if ALL bits in mask are set in byte.
ⓘ
const ACTIVE_AND_VERIFIED: u8 = 0b0000_0011;
if check_flags(state_flags, ACTIVE_AND_VERIFIED) { ... }