pub struct EntrySet { /* private fields */ }Expand description
A bitset over the pack’s entries. One bit per entry: 1.7 MB for the kernel
pack, against 111 MB for the Vec<usize> of indices it replaces.
Implementations§
Source§impl EntrySet
impl EntrySet
pub fn new(len: usize) -> Self
pub fn contains(&self, i: usize) -> bool
pub fn insert(&mut self, i: usize) -> bool
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
How many entries are in the set — the round’s object count, without a second pass over the bits.
pub fn is_empty(&self) -> bool
Sourcepub fn union_with(&mut self, other: &EntrySet)
pub fn union_with(&mut self, other: &EntrySet)
Fold another set of the same width in. What a fixpoint uses to say “these are resolved now” without a pass over the entries.
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntrySet
impl RefUnwindSafe for EntrySet
impl Send for EntrySet
impl Sync for EntrySet
impl Unpin for EntrySet
impl UnsafeUnpin for EntrySet
impl UnwindSafe for EntrySet
Blanket Implementations§
impl<T> Allocation for T
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