pub struct SectorBitSet { /* private fields */ }Expand description
A simple bitset for tracking sector states.
Used to track which sectors have been written and which have faults. Implements a compact representation using u64 words.
Implementations§
Source§impl SectorBitSet
impl SectorBitSet
Sourcepub fn new(num_sectors: usize) -> Self
pub fn new(num_sectors: usize) -> Self
Create a new bitset with capacity for the given number of sectors.
All bits are initially unset (false).
Sourcepub fn resize_copy(other: &Self, new_len: usize) -> Self
pub fn resize_copy(other: &Self, new_len: usize) -> Self
Create a new bitset by copying set bits from another bitset.
Only copies bits up to the minimum of both bitsets’ lengths.
Trait Implementations§
Source§impl Clone for SectorBitSet
impl Clone for SectorBitSet
Source§fn clone(&self) -> SectorBitSet
fn clone(&self) -> SectorBitSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SectorBitSet
impl RefUnwindSafe for SectorBitSet
impl Send for SectorBitSet
impl Sync for SectorBitSet
impl Unpin for SectorBitSet
impl UnsafeUnpin for SectorBitSet
impl UnwindSafe for SectorBitSet
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