pub struct AutoSet<K, H = BuildHasherDefault<FxHasher>, const I: usize = 0> { /* private fields */ }
Implementations§
Source§impl<K> AutoSet<K, BuildHasherDefault<FxHasher>, 0>
impl<K> AutoSet<K, BuildHasherDefault<FxHasher>, 0>
Sourcepub const fn new() -> Self
pub const fn new() -> Self
see HashSet::new
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Source§impl<K, H: BuildHasher, const I: usize> AutoSet<K, H, I>
impl<K, H: BuildHasher, const I: usize> AutoSet<K, H, I>
Sourcepub const fn with_hasher() -> Self
pub const fn with_hasher() -> Self
Sourcepub fn with_capacity_and_hasher(capacity: usize, hasher: H) -> Self
pub fn with_capacity_and_hasher(capacity: usize, hasher: H) -> Self
Sourcepub fn clear(&mut self)
pub fn clear(&mut self)
see HashSet::clear
Source§impl<K: Hash + Eq, H: BuildHasher + Default, const I: usize> AutoSet<K, H, I>
impl<K: Hash + Eq, H: BuildHasher + Default, const I: usize> AutoSet<K, H, I>
Sourcepub fn insert(&mut self, key: K) -> bool
pub fn insert(&mut self, key: K) -> bool
see HashSet::insert
Sourcepub fn remove(&mut self, key: &K) -> bool
pub fn remove(&mut self, key: &K) -> bool
see HashSet::remove
Sourcepub fn extend(&mut self, iter: impl IntoIterator<Item = K>)
pub fn extend(&mut self, iter: impl IntoIterator<Item = K>)
see HashSet::extend
Sourcepub fn shrink_to_fit(&mut self)
pub fn shrink_to_fit(&mut self)
Trait Implementations§
Source§impl<'de, K, H, const I: usize> Deserialize<'de> for AutoSet<K, H, I>
impl<'de, K, H, const I: usize> Deserialize<'de> for AutoSet<K, H, I>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<K, H, const I: usize> FromIterator<K> for AutoSet<K, H, I>
impl<K, H, const I: usize> FromIterator<K> for AutoSet<K, H, I>
Source§fn from_iter<T: IntoIterator<Item = K>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = K>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl<'a, K, H, const I: usize> IntoIterator for &'a AutoSet<K, H, I>
impl<'a, K, H, const I: usize> IntoIterator for &'a AutoSet<K, H, I>
Source§impl<K, H, const I: usize> IntoIterator for AutoSet<K, H, I>
impl<K, H, const I: usize> IntoIterator for AutoSet<K, H, I>
Source§impl<K, H, const I: usize> ShrinkToFit for AutoSet<K, H, I>
impl<K, H, const I: usize> ShrinkToFit for AutoSet<K, H, I>
fn shrink_to_fit(&mut self)
impl<K: Eq + Hash, H: BuildHasher, const I: usize> Eq for AutoSet<K, H, I>
Auto Trait Implementations§
impl<K, H, const I: usize> Freeze for AutoSet<K, H, I>where
K: Freeze,
impl<K, H, const I: usize> RefUnwindSafe for AutoSet<K, H, I>where
H: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, H, const I: usize> Send for AutoSet<K, H, I>
impl<K, H, const I: usize> Sync for AutoSet<K, H, I>
impl<K, H, const I: usize> Unpin for AutoSet<K, H, I>where
K: Unpin,
impl<K, H, const I: usize> UnwindSafe for AutoSet<K, H, I>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.