| 1 |
# Bit-Vector Constructor |
| 2 |
|
| 3 |
This macro creates encoded `BitSlice` buffers at compile-time, and at run-time |
| 4 |
copies them directly into a new heap allocation. |
| 5 |
|
| 6 |
It forwards all of its arguments to [`bits!`], and calls |
| 7 |
[`BitVec::from_bitslice`] on the produced `&BitSlice` expression. While you can |
| 8 |
use the `bits!` modifiers, there is no point, as the produced bit-slice is lost |
| 9 |
before the macro exits. |
| 10 |
|
| 11 |
[`BitVec::from_bitslice`]: crate::vec::BitVec::from_bitslice |
| 12 |
[`bits!`]: macro@crate::bits |