[][src]Struct ckb_util::LinkedHashSet

pub struct LinkedHashSet<T, S = BuildHasherDefault<DefaultHasher>> { /* fields omitted */ }

Implementations

impl<T: Hash + Eq> LinkedHashSet<T, BuildHasherDefault<DefaultHasher>>[src]

impl<T, S> LinkedHashSet<T, S> where
    T: Eq + Hash,
    S: BuildHasher
[src]

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

pub fn capacity(&self) -> usize[src]

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

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

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

pub fn iter(&self) -> Iter<'_, T>[src]

pub fn difference<'a>(
    &'a self,
    other: &'a LinkedHashSet<T, S>
) -> Difference<'a, T, S>
[src]

Trait Implementations

impl<T: Hash + Eq> Default for LinkedHashSet<T, BuildHasherDefault<DefaultHasher>>[src]

fn default() -> LinkedHashSet<T, BuildHasherDefault<DefaultHasher>>[src]

Creates an empty HashSet<T> with the Default value for the hasher.

impl<T, S> Extend<T> for LinkedHashSet<T, S> where
    T: Eq + Hash,
    S: BuildHasher
[src]

impl<'a, T, S> IntoIterator for &'a LinkedHashSet<T, S> where
    T: Eq + Hash,
    S: BuildHasher
[src]

type Item = &'a T

The type of the elements being iterated over.

type IntoIter = Iter<'a, T>

Which kind of iterator are we turning this into?

impl<T, S> IntoIterator for LinkedHashSet<T, S> where
    T: Eq + Hash,
    S: BuildHasher
[src]

type Item = T

The type of the elements being iterated over.

type IntoIter = IntoIter<T>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<T, S> RefUnwindSafe for LinkedHashSet<T, S> where
    S: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, S> Send for LinkedHashSet<T, S> where
    S: Send,
    T: Send

impl<T, S> Sync for LinkedHashSet<T, S> where
    S: Sync,
    T: Sync

impl<T, S> Unpin for LinkedHashSet<T, S> where
    S: Unpin

impl<T, S> UnwindSafe for LinkedHashSet<T, S> where
    S: UnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

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

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

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

impl<T> Erased for T

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.

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.