Struct m6_key_set::KeyHashSet[][src]

pub struct KeyHashSet<T, K: Hash> { /* fields omitted */ }
Expand description

KeyHashSet

Trait Implementations

impl<T, K> Debug for KeyHashSet<T, K> where
    T: Clone + Debug,
    K: Debug + Hash
[src]

Debug for KeyHashSet

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<T, K> Extend<T> for KeyHashSet<T, K> where
    T: Clone,
    K: Hash + Eq
[src]

Extend for KeyHashSet

fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)[src]

Extends a collection with the contents of an iterator. Read more

fn extend_one(&mut self, item: A)[src]

🔬 This is a nightly-only experimental API. (extend_one)

Extends a collection with exactly one element.

fn extend_reserve(&mut self, additional: usize)[src]

🔬 This is a nightly-only experimental API. (extend_one)

Reserves capacity in a collection for the given number of additional elements. Read more

impl<T, K> IntoIterator for KeyHashSet<T, K> where
    K: Hash
[src]

IntoIterator for KeyHashSet

type Item = T

The type of the elements being iterated over.

type IntoIter = Map<IntoIter<K, T>, fn(_: (K, T)) -> T>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Creates an iterator from a value. Read more

impl<T, K> KeySet<T, K> for KeyHashSet<T, K> where
    T: Clone,
    K: Eq + Hash
[src]

fn new(get_key: GetKeyType<T, K>) -> Self[src]

Create KeySet

fn from_intoiter(
    get_key: GetKeyType<T, K>,
    iter: impl IntoIterator<Item = T>
) -> Self
[src]

fn insert(&mut self, value: T)[src]

Operate KeySet elem

fn contains(&self, value: &T) -> bool[src]

fn remove(&mut self, value: &T) -> bool[src]

fn take(&mut self, value: &T) -> Option<T>[src]

fn get(&mut self, value: &T) -> Option<&T>[src]

fn len(&self) -> usize[src]

fn iter(&self) -> IntoIter<&T>[src]

fn intersection<'a>(&'a self, other: &'a Self) -> Self[src]

Operate with other KeySet

fn union<'a>(&'a self, other: &'a Self) -> Self[src]

fn difference<'a>(&'a self, other: &'a Self) -> Self[src]

fn symmetric_difference<'a>(&'a self, other: &'a Self) -> Self[src]

fn is_subset(&self, other: &Self) -> bool[src]

Check KeySet relationship

fn is_superset(&self, other: &Self) -> bool[src]

fn is_empty(&self) -> bool[src]

fn is_disjoint(&self, other: &Self) -> bool[src]

impl<T, K> PartialEq<KeyHashSet<T, K>> for KeyHashSet<T, K> where
    T: Clone,
    K: Eq + Hash
[src]

PartialEq for KeyHashSet

fn eq(&self, other: &Self) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

Auto Trait Implementations

impl<T, K> RefUnwindSafe for KeyHashSet<T, K> where
    K: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, K> Send for KeyHashSet<T, K> where
    K: Send,
    T: Send

impl<T, K> Sync for KeyHashSet<T, K> where
    K: Sync,
    T: Sync

impl<T, K> Unpin for KeyHashSet<T, K> where
    K: Unpin,
    T: Unpin

impl<T, K> UnwindSafe for KeyHashSet<T, K> where
    K: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.