mask

Macro mask 

Source
macro_rules! mask {
    ($n:expr) => { ... };
}
Expand description

Safely create a bitmask of n bits in size shifted to the right side of the number without overflowing.