[][src]Struct indexed_hash_set::RcIndex

pub struct RcIndex { /* fields omitted */ }

A reference-counted index to an entry of the set.

Implementations

impl RcIndex[src]

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

Get the usage count of the element.

Trait Implementations

impl Clone for RcIndex[src]

impl Debug for RcIndex[src]

impl Drop for RcIndex[src]

impl<'a, T> Index<&'a RcIndex> for IndexedHashSet<T> where
    T: 'static + Eq + Hash
[src]

Allows to access the set like set[&rc_idx].

This panics if the RcIndex used is not from this IndexedHashSet.

type Output = T

The returned type after indexing.

Auto Trait Implementations

impl !RefUnwindSafe for RcIndex

impl !Send for RcIndex

impl !Sync for RcIndex

impl Unpin for RcIndex

impl !UnwindSafe for RcIndex

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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.