Expand description
General utilities for bitmaps representing items where LSB is the first item.
Structs§
- BitChunks
- This struct is used to efficiently iterate over bit masks by loading bytes on
the stack with alignments of
uX
. This allows efficient iteration over bitmaps. - BitChunks
Exact - An iterator over a slice of bytes in
BitChunk
s. - BitChunks
Exact Mut - An iterator over mutable slices of bytes of exact size.
- Bitmap
Iter - An iterator over bits according to the LSB,
i.e. the bytes
[4u8, 128u8]
correspond to[false, false, true, false, ..., true]
. - Slices
Iterator - Iterator over a bitmap that returns slices of set regions.
- ZipValidity
Iter - An
Iterator
over validity and values.
Enums§
- ZipValidity
- An
Iterator
overOption<T>
This enum can be used in two distinct ways:
Traits§
- BitChunk
- A chunk of bits. This is used to create masks of a given length
whose width is
1
bit. Inportable_simd
notation, this corresponds tom1xY
. - BitChunk
Iter Exact - Trait representing an exact iterator over bytes in
BitChunk
.
Functions§
- bytes_
for - Returns the number of bytes required to hold
bits
bits. - count_
zeros - Returns the number of zero bits in the slice offsetted by
offset
and a length oflength
. - fmt
- Formats
bytes
taking into account an offset and length of the form - get_
bit_ ⚠unchecked - Returns whether bit at position
i
inbytes
is set or not. - is_set
- Returns whether bit at position
i
inbyte
is set or not - leading_
ones - Returns the number of one bits before seeing a zero bit in the slice offsetted by
offset
and a length oflength
. - leading_
zeros - Returns the number of zero bits before seeing a one bit in the slice offsetted by
offset
and a length oflength
. - set_
bit_ in_ byte - Sets bit at position
i
inbyte
. - set_
bit_ ⚠unchecked - Sets bit at position
i
inbytes
without doing bound checks. - trailing_
ones - Returns the number of one bits before seeing a zero bit in the slice offsetted by
offset
and a length oflength
. - trailing_
zeros - Returns the number of zero bits before seeing a one bit in the slice offsetted by
offset
and a length oflength
.