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
sourceimpl 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.
Auto Trait Implementations
impl RefUnwindSafe for Vec
impl Send for Vec
impl Sync for Vec
impl Unpin for Vec
impl UnwindSafe for Vec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more