Struct git_bitmap::ewah::Vec
source · pub struct Vec { /* private fields */ }
Expand description
A growable collection of u64 that are seen as stream of individual bits.
Implementations§
source§impl Vec
impl Vec
sourcepub fn for_each_set_bit(&self, f: impl FnMut(usize) -> Option<()>) -> Option<()>
pub fn for_each_set_bit(&self, f: impl FnMut(usize) -> Option<()>) -> Option<()>
Call f(index)
for each bit that is true, given the index of the bit that identifies it uniquely within the bit array.
If f
returns None
the iteration will be stopped and None
is returned.
The index is sequential like in any other vector.