bit_concat

Macro bit_concat 

Source
macro_rules! bit_concat {
    ($($x:expr),*) => { ... };
}
Expand description

Concatenate the bits of integers.

Example:

bit_concat!(
    (0b111, 3),
    (0b01, 2)
) == 0b11101;