Skip to main content

Module bit_iterator

Module bit_iterator 

Source
Expand description

Types for iterating over packed bitmasks

Re-exportsยง

use crate::bit_chunk_iterator::UnalignedBitChunk; ๐Ÿ”’
use crate::bit_chunk_iterator::UnalignedBitChunkIterator; ๐Ÿ”’
use crate::bit_util::ceil; ๐Ÿ”’
use crate::bit_util::get_bit_raw; ๐Ÿ”’

Structsยง

BitIndexIterator
An iterator of usize whose index in a provided bitmask is true
BitIndexU32Iterator
An iterator of u32 whose index in a provided bitmask is true Respects arbitrary offsets and slice lead/trail padding exactly like BitIndexIterator
BitIterator
Iterator over the bits within a packed bitmask
BitSliceIterator
Iterator of contiguous ranges of set bits within a provided packed bitmask

Functionsยง

try_for_each_valid_idx
Calls the provided closure for each index in the provided null mask that is set, using an adaptive strategy based on the null count