pub struct KevySet<K>(/* private fields */);Expand description
HashSet-shaped wrapper over KevyMap<K, ()>.
Carries the same per-shard / single-trust-domain assumptions; differs from
std::HashSet only by hashing through KevyHash (one-call inlinable)
and exposing the underlying KevyMap’s bucket-address API via
KevySet::as_map for callers that want prefetch.
Implementations§
Source§impl<K> KevySet<K>
impl<K> KevySet<K>
Sourcepub fn with_capacity(cap_hint: usize) -> Self
pub fn with_capacity(cap_hint: usize) -> Self
Construct a set sized for cap_hint members without growing.
Trait Implementations§
Source§impl<K: KevyHash + Eq> Extend<K> for KevySet<K>
impl<K: KevyHash + Eq> Extend<K> for KevySet<K>
Source§fn extend<I: IntoIterator<Item = K>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = K>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Auto Trait Implementations§
impl<K> Freeze for KevySet<K>
impl<K> RefUnwindSafe for KevySet<K>where
K: RefUnwindSafe,
impl<K> Send for KevySet<K>where
K: Send,
impl<K> Sync for KevySet<K>where
K: Sync,
impl<K> Unpin for KevySet<K>where
K: Unpin,
impl<K> UnsafeUnpin for KevySet<K>
impl<K> UnwindSafe for KevySet<K>where
K: UnwindSafe + RefUnwindSafe,
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