pub struct LogosI32Set { /* private fields */ }Expand description
i32-narrowed open-addressing set — the keys-only sibling of LogosI32Map
(the i32 analogue of LogosI64Set). One flat Vec<i32>: 4 bytes per slot,
a quarter of LogosI64Map’s footprint. Emitted for a set-usage Int → Int
map whose keys are all proven to fit i32. The empty-slot sentinel is 0
(the real key 0 tracked separately) so vec![0; slots] allocates via
alloc_zeroed — lazily-zeroed, no eager memset of the table.
Implementations§
Trait Implementations§
Source§impl Clone for LogosI32Set
impl Clone for LogosI32Set
Source§fn clone(&self) -> LogosI32Set
fn clone(&self) -> LogosI32Set
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 LogosI32Set
impl Debug for LogosI32Set
Source§impl Default for LogosI32Set
impl Default for LogosI32Set
Source§impl LogosContains<i64> for LogosI32Set
impl LogosContains<i64> for LogosI32Set
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 LogosI32Set
impl RefUnwindSafe for LogosI32Set
impl Send for LogosI32Set
impl Sync for LogosI32Set
impl Unpin for LogosI32Set
impl UnsafeUnpin for LogosI32Set
impl UnwindSafe for LogosI32Set
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