Module bit_iterator

Expand description

Types for iterating over packed bitmasks

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