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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)