pub struct AtomicBitmap { /* private fields */ }Expand description
Thread-safe bitmap using atomic operations.
Used for tracking which embeddings have been accessed or modified. Each bit represents one embedding node.
Implementations§
Source§impl AtomicBitmap
impl AtomicBitmap
Sourcepub fn new(size: usize) -> Self
pub fn new(size: usize) -> Self
Create a new atomic bitmap with the specified capacity.
§Arguments
size- Number of bits to allocate
Sourcepub fn get_set_indices(&self) -> Vec<usize>
pub fn get_set_indices(&self) -> Vec<usize>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AtomicBitmap
impl RefUnwindSafe for AtomicBitmap
impl Send for AtomicBitmap
impl Sync for AtomicBitmap
impl Unpin for AtomicBitmap
impl UnwindSafe for AtomicBitmap
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