macro_rules! check_bit {
($flags:expr, $mask:expr) => { ... };
}
Expand description
Check if a bit is set.
use macro_bits::{check_bit, bit};
const MASK: u8 = bit!(1,2);
assert!(check_bit!(0xff, MASK));
macro_rules! check_bit {
($flags:expr, $mask:expr) => { ... };
}
Check if a bit is set.
use macro_bits::{check_bit, bit};
const MASK: u8 = bit!(1,2);
assert!(check_bit!(0xff, MASK));