xwrust

Macro bit

source
macro_rules! bit {
    ($($pos:expr),*) => { ... };
}
Expand description

生成位掩码的宏

§示例

let pinmsk: XwSq = bit!(0, 1, 2, 3); // 0b1111