pub struct LogosDenseI64Set { /* private fields */ }Expand description
Direct-addressed i64 SET — the keys-only, value-free sibling of
LogosDenseI64Map (the dense analogue of LogosI64Set). Membership lives
in a presence bitset over the proven window [lo, lo + slots); insert sets
a bit, contains tests one. No value array → 1 bit per key, the smallest
footprint of any map/set representation.
Implementations§
Source§impl LogosDenseI64Set
impl LogosDenseI64Set
pub fn new() -> Self
pub fn with_capacity(cap: usize) -> Self
pub fn with_bounds(lo: i64, slots: usize) -> Self
Sourcepub fn insert(&mut self, key: i64, _value: i64)
pub fn insert(&mut self, key: i64, _value: i64)
Insert a key. The _value mirrors LogosDenseI64Map::insert’s call
shape so codegen needs no special-casing at the insert site.
pub fn contains_key(&self, key: &i64) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for LogosDenseI64Set
impl Clone for LogosDenseI64Set
Source§fn clone(&self) -> LogosDenseI64Set
fn clone(&self) -> LogosDenseI64Set
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogosDenseI64Set
impl Debug for LogosDenseI64Set
Source§impl Default for LogosDenseI64Set
impl Default for LogosDenseI64Set
Source§impl LogosContains<i64> for LogosDenseI64Set
impl LogosContains<i64> for LogosDenseI64Set
Source§fn logos_contains(&self, key: &i64) -> bool
fn logos_contains(&self, key: &i64) -> bool
Check if this collection contains the given value.
Auto Trait Implementations§
impl Freeze for LogosDenseI64Set
impl RefUnwindSafe for LogosDenseI64Set
impl Send for LogosDenseI64Set
impl Sync for LogosDenseI64Set
impl Unpin for LogosDenseI64Set
impl UnsafeUnpin for LogosDenseI64Set
impl UnwindSafe for LogosDenseI64Set
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