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