Struct AHashSet
pub struct AHashSet<T, S = RandomState>(/* private field */);
A HashSet using RandomState to hash the items.
(Requires the std feature to be enabled.)
Implementations
impl<T> AHashSet<T, RandomState>
fn new() -> SelfThis creates a hashset using [RandomState::new]. See the documentation in [RandomSource] for notes about key strength.
fn with_capacity(capacity: usize) -> SelfThis craetes a hashset with the specified capacity using [RandomState::new]. See the documentation in [RandomSource] for notes about key strength.
impl<T, S> AHashSet<T, S>
where
S: BuildHasher,
fn with_hasher(hash_builder: S) -> Selffn with_capacity_and_hasher(capacity: usize, hash_builder: S) -> Self
Trait Implementations
impl<'a, T, S> Extend<&'a T> for AHashSet<T, S>
where
T: 'a + Eq + Hash + Copy,
S: BuildHasher,
fn extend<I: IntoIterator<Item = &'a T>>(&mut self, iter: I)
impl<T> Default for AHashSet<T, RandomState>
fn default() -> AHashSet<T, RandomState>Creates an empty
AHashSet<T, S>with theDefaultvalue for the hasher.
impl<T> From<HashSet<T, RandomState>> for AHashSet<T>
fn from(item: HashSet<T, RandomState>) -> Self
impl<T> FromIterator<T> for AHashSet<T, RandomState>
where
T: Eq + Hash,
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> AHashSet<T>This creates a hashset from the provided iterator using [RandomState::new]. See the documentation in [RandomSource] for notes about key strength.
impl<T> Into<HashSet<T, RandomState>> for AHashSet<T>
fn into(self) -> HashSet<T, RandomState>
impl<T, S> Debug for AHashSet<T, S>
where
T: Debug,
S: BuildHasher,
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result
impl<T, S> Deref for AHashSet<T, S>
type Target = HashSet<T, S>;fn deref(&self) -> &Self::Target
impl<T, S> DerefMut for AHashSet<T, S>
fn deref_mut(&mut self) -> &mut Self::Target
impl<T, S> Eq for AHashSet<T, S>
where
T: Eq + Hash,
S: BuildHasher,
impl<T, S> Extend<T> for AHashSet<T, S>
where
T: Eq + Hash,
S: BuildHasher,
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
impl<T, S> IntoIterator for AHashSet<T, S>
type Item = T;type IntoIter = IntoIter<T>;fn into_iter(self) -> Self::IntoIter
impl<T, S> PartialEq for AHashSet<T, S>
where
T: Eq + Hash,
S: BuildHasher,
fn eq(&self, other: &AHashSet<T, S>) -> bool
impl<T, const N: usize> From<[T; N]> for AHashSet<T>
where
T: Eq + Hash,
fn from(arr: [T; N]) -> SelfExamples
use AHashSet; let set1 = from; let set2: = .into; assert_eq!;
impl<T: Clone, S: Clone> Clone for AHashSet<T, S>
fn clone(&self) -> AHashSet<T, S>
Auto Trait Implementations
impl<T, S> Freeze for AHashSet<T, S>
where
HashSet<T, S>: Freeze,
impl<T, S> RefUnwindSafe for AHashSet<T, S>
where
HashSet<T, S>: RefUnwindSafe,
impl<T, S> Send for AHashSet<T, S>
where
HashSet<T, S>: Send,
impl<T, S> Sync for AHashSet<T, S>
where
HashSet<T, S>: Sync,
impl<T, S> Unpin for AHashSet<T, S>
where
HashSet<T, S>: Unpin,
impl<T, S> UnsafeUnpin for AHashSet<T, S>
where
HashSet<T, S>: UnsafeUnpin,
impl<T, S> UnwindSafe for AHashSet<T, S>
where
HashSet<T, S>: UnwindSafe,
Blanket Implementations
impl<P, T> Receiver for AHashSet<T, S>
where
P: Deref<Target = T> + ?Sized,
T: ?Sized,
type Target = T;
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for AHashSet<T, S>
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for AHashSet<T, S>
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for AHashSet<T, S>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for AHashSet<T, S>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for AHashSet<T, S>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for AHashSet<T, S>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for AHashSet<T, S>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Read<Exclusive, BecauseExclusive> for AHashSet<T, S>
where
T: ?Sized,
impl<T> ToOwned for AHashSet<T, S>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for AHashSet<T, S>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for AHashSet<T, S>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for AHashSet<T, S>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>