pub struct SmallSetData { /* private fields */ }Expand description
Inline packed set storage. 24 bytes total — see module docs for layout.
Implementations§
Source§impl SmallSetData
impl SmallSetData
Sourcepub fn contains(&self, member: &[u8]) -> bool
pub fn contains(&self, member: &[u8]) -> bool
Linear scan for member. ≤22 bytes of packed entries fit in one
cache line; loop is unrolled by the optimiser at small counts.
Sourcepub fn iter_slices(&self) -> SmallSetIter<'_> ⓘ
pub fn iter_slices(&self) -> SmallSetIter<'_> ⓘ
Iterator over the packed entries as &[u8] slices. Owns nothing.
Sourcepub fn iter(&self) -> SmallSetIter<'_> ⓘ
pub fn iter(&self) -> SmallSetIter<'_> ⓘ
Alias for Self::iter_slices — matches the iter shape used by
other collection types in this crate.
Trait Implementations§
Source§impl Clone for SmallSetData
impl Clone for SmallSetData
Source§fn clone(&self) -> SmallSetData
fn clone(&self) -> SmallSetData
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 moreAuto Trait Implementations§
impl Freeze for SmallSetData
impl RefUnwindSafe for SmallSetData
impl Send for SmallSetData
impl Sync for SmallSetData
impl Unpin for SmallSetData
impl UnsafeUnpin for SmallSetData
impl UnwindSafe for SmallSetData
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