pub struct KeyHashSet<T, K: Hash> { /* private fields */ }
Expand description
KeyHashSet
Trait Implementations§
Source§impl<T, K> Debug for KeyHashSet<T, K>
Debug for KeyHashSet
impl<T, K> Debug for KeyHashSet<T, K>
Debug for KeyHashSet
Source§impl<T, K> Extend<T> for KeyHashSet<T, K>
Extend for KeyHashSet
impl<T, K> Extend<T> for KeyHashSet<T, K>
Extend for KeyHashSet
Source§fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = T>>(&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
Source§impl<T, K> IntoIterator for KeyHashSet<T, K>where
K: Hash,
IntoIterator for KeyHashSet
impl<T, K> IntoIterator for KeyHashSet<T, K>where
K: Hash,
IntoIterator for KeyHashSet
Source§impl<T, K> KeySet<T, K> for KeyHashSet<T, K>
impl<T, K> KeySet<T, K> for KeyHashSet<T, K>
Source§fn new(get_key: GetKeyType<T, K>) -> Self
fn new(get_key: GetKeyType<T, K>) -> Self
Create KeySet
fn from_intoiter( get_key: GetKeyType<T, K>, iter: impl IntoIterator<Item = T>, ) -> Self
fn contains(&self, value: &T) -> bool
fn remove(&mut self, value: &T) -> bool
fn take(&mut self, value: &T) -> Option<T>
fn get(&mut self, value: &T) -> Option<&T>
fn len(&self) -> usize
fn iter(&self) -> IntoIter<&T>
Source§fn intersection<'a>(&'a self, other: &'a Self) -> Self
fn intersection<'a>(&'a self, other: &'a Self) -> Self
Operate with other KeySet
fn union<'a>(&'a self, other: &'a Self) -> Self
fn difference<'a>(&'a self, other: &'a Self) -> Self
fn symmetric_difference<'a>(&'a self, other: &'a Self) -> Self
fn is_superset(&self, other: &Self) -> bool
fn is_empty(&self) -> bool
fn is_disjoint(&self, other: &Self) -> bool
Source§impl<T, K> PartialEq for KeyHashSet<T, K>
PartialEq for KeyHashSet
impl<T, K> PartialEq for KeyHashSet<T, K>
PartialEq for KeyHashSet
Auto Trait Implementations§
impl<T, K> Freeze for KeyHashSet<T, K>
impl<T, K> RefUnwindSafe for KeyHashSet<T, K>where
K: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, K> Send for KeyHashSet<T, K>
impl<T, K> Sync for KeyHashSet<T, K>
impl<T, K> Unpin for KeyHashSet<T, K>
impl<T, K> UnwindSafe for KeyHashSet<T, K>where
K: UnwindSafe,
T: UnwindSafe,
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