macro_rules! bitbox {
( $endian:path , $bits:ty ; $( $element:expr ),* ) => { ... };
( $endian:path , $bits:ty ; $( $element:expr , )* ) => { ... };
( $endian:path ; $( $element:expr ),* ) => { ... };
( $endian:path ; $( $element:expr , )* ) => { ... };
( $( $element:expr ),* ) => { ... };
( $( $element:expr , )* ) => { ... };
( $endian:path , $bits:ty ; $element:expr ; $rep:expr ) => { ... };
( $endian:path ; $element:expr ; $rep:expr ) => { ... };
( $element:expr ; $rep:expr ) => { ... };
}
Construct a BitBox
out of a literal array in source code, like bitvec!
.
This has exactly the same syntax as bitvec!
, and in fact is a thin wrapper
around bitvec!
that calls .into_boxed_slice()
on the produced BitVec
to
freeze it.