std::collections::hash_set
The entries of std::collections::hash_set in the Rust reference. This page has 57 cards.
pub struct Difference<'a, T: 'a, S: 'a, A: Allocator = Global>
- Kind
- struct
- Module
std::collections::hash_set- Since
- 1.0.0
pub struct Drain<'a, K: 'a, A: Allocator = Global>
- Kind
- struct
- Module
std::collections::hash_set- Since
- 1.0.0
pub enum Entry<'a, T, S, A: Allocator = Global>
- Kind
- enum
- Module
std::collections::hash_set
pub fn get(&self) -> &T
- Kind
- method
- Module
std::collections::hash_set
pub fn insert(self) -> OccupiedEntry<'a, T, S, A> where T: Hash, S: BuildHasher
- Kind
- method
- Module
std::collections::hash_set
pub fn or_insert(self) where T: Hash, S: BuildHasher
- Kind
- method
- Module
std::collections::hash_set
pub struct HashSet<T, S = RandomState, A: Allocator = Global>
- Kind
- struct
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn capacity(&self) -> usize
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn clear(&mut self)
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn contains<Q>(&self, value: &Q) -> bool where T: Borrow<Q>, Q: Hash + Eq + ?Sized
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn difference<'a>( &'a self, other: &'a HashSet<T, S, A>, ) -> Difference<'a, T, S, A>
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn drain(&mut self) -> Drain<'_, T, A>
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.6.0
pub fn entry(&mut self, value: T) -> Entry<'_, T, S, A>
- Kind
- method
- Module
std::collections::hash_set
pub fn get<Q>(&self, value: &Q) -> Option<&T> where T: Borrow<Q>, Q: Hash + Eq + ?Sized
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.9.0
pub fn get_or_insert(&mut self, value: T) -> &T
- Kind
- method
- Module
std::collections::hash_set
pub fn get_or_insert_with<Q, F>(&mut self, value: &Q, f: F) -> &T where T: Borrow<Q>, Q: Hash + Eq + ?Sized, F: FnOnce(&Q) -> T
- Kind
- method
- Module
std::collections::hash_set
pub fn hasher(&self) -> &S
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.9.0
pub fn insert(&mut self, value: T) -> bool
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn intersection<'a>( &'a self, other: &'a HashSet<T, S, A>, ) -> Intersection<'a, T, S, A>
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn is_disjoint(&self, other: &HashSet<T, S, A>) -> bool
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn is_empty(&self) -> bool
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn is_subset(&self, other: &HashSet<T, S, A>) -> bool
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn is_superset(&self, other: &HashSet<T, S, A>) -> bool
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn iter(&self) -> Iter<'_, T>
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn len(&self) -> usize
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn new() -> HashSet<T, RandomState>
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn new_in(alloc: A) -> HashSet<T, RandomState, A>
- Kind
- method
- Module
std::collections::hash_set
pub fn remove<Q>(&mut self, value: &Q) -> bool where T: Borrow<Q>, Q: Hash + Eq + ?Sized
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn replace(&mut self, value: T) -> Option<T>
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.9.0
pub fn reserve(&mut self, additional: usize)
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn retain<F>(&mut self, f: F) where F: FnMut(&T) -> bool
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.18.0
pub fn shrink_to(&mut self, min_capacity: usize)
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.56.0
pub fn shrink_to_fit(&mut self)
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn symmetric_difference<'a>( &'a self, other: &'a HashSet<T, S, A>, ) -> SymmetricDifference<'a, T, S, A>
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn take<Q>(&mut self, value: &Q) -> Option<T> where T: Borrow<Q>, Q: Hash + Eq + ?Sized
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.9.0
pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError>
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.57.0
pub fn union<'a>(&'a self, other: &'a HashSet<T, S, A>) -> Union<'a, T, S, A>
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn with_capacity(capacity: usize) -> HashSet<T, RandomState>
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.0.0
pub fn with_capacity_and_hasher(capacity: usize, hasher: S) -> HashSet<T, S>
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.7.0
pub fn with_capacity_and_hasher_in( capacity: usize, hasher: S, alloc: A, ) -> HashSet<T, S, A>
- Kind
- method
- Module
std::collections::hash_set
pub fn with_capacity_in(capacity: usize, alloc: A) -> HashSet<T, RandomState, A>
- Kind
- method
- Module
std::collections::hash_set
pub const fn with_hasher(hasher: S) -> HashSet<T, S>
- Kind
- method
- Module
std::collections::hash_set- Since
- 1.7.0
pub fn with_hasher_in(hasher: S, alloc: A) -> HashSet<T, S, A>
- Kind
- method
- Module
std::collections::hash_set
pub struct Intersection<'a, T: 'a, S: 'a, A: Allocator = Global>
- Kind
- struct
- Module
std::collections::hash_set- Since
- 1.0.0
pub struct IntoIter<K, A: Allocator = Global>
- Kind
- struct
- Module
std::collections::hash_set- Since
- 1.0.0
pub struct Iter<'a, K: 'a>
- Kind
- struct
- Module
std::collections::hash_set- Since
- 1.0.0
pub struct OccupiedEntry<'a, T, S, A: Allocator = Global>
- Kind
- struct
- Module
std::collections::hash_set
pub fn get(&self) -> &T
- Kind
- method
- Module
std::collections::hash_set
pub fn remove(self) -> T
- Kind
- method
- Module
std::collections::hash_set
pub struct SymmetricDifference<'a, T: 'a, S: 'a, A: Allocator = Global>
- Kind
- struct
- Module
std::collections::hash_set- Since
- 1.0.0
pub struct Union<'a, T: 'a, S: 'a, A: Allocator = Global>
- Kind
- struct
- Module
std::collections::hash_set- Since
- 1.0.0
pub struct VacantEntry<'a, T, S, A: Allocator = Global>
- Kind
- struct
- Module
std::collections::hash_set
pub fn get(&self) -> &T
- Kind
- method
- Module
std::collections::hash_set
pub fn insert(self) where T: Hash, S: BuildHasher
- Kind
- method
- Module
std::collections::hash_set
pub fn into_value(self) -> T
- Kind
- method
- Module
std::collections::hash_set