#[non_exhaustive]pub struct BigEndian;
Expand description
Big-endian indexing for bit sets.
This can be used in combination with methods such as Bits::test_bit_in
.
Big-endian indexing is constructed increasingly from right to left for
individual primitives, such as the following u8
literal:
0b0010_0010u8
^ ^- index 1
'------ index 5
Arrays are treated the same as expected where the index grows from smallest to largest address, but each interior primitive is indexed in big endian ordering.
0 --------- 8 8 -------- 15
[0b0010_0010u8, 0b1000_0000u8]
^ ^ ^- index 15
| '--------- index 1
'-------------- index 5