[][src]Struct fallible_collections::hashmap::TryHashMap

pub struct TryHashMap<K, V> { /* fields omitted */ }

Implementations

impl<K, V> TryHashMap<K, V> where
    K: Eq + Hash
[src]

pub fn with_capacity(capacity: usize) -> Result<Self, TryReserveError>[src]

pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V> where
    K: Borrow<Q>,
    Q: Hash + Eq
[src]

pub fn insert(&mut self, k: K, v: V) -> Result<Option<V>, TryReserveError>[src]

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

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

pub fn remove<Q: ?Sized>(&mut self, k: &Q) -> Option<V> where
    K: Borrow<Q>,
    Q: Hash + Eq
[src]

Trait Implementations

impl<K: Default, V: Default> Default for TryHashMap<K, V>[src]

impl<K, V> IntoIterator for TryHashMap<K, V>[src]

type Item = (K, V)

The type of the elements being iterated over.

type IntoIter = IntoIter<K, V>

Which kind of iterator are we turning this into?

impl<K, V> TryClone for TryHashMap<K, V> where
    K: Eq + Hash + TryClone,
    V: TryClone
[src]

Auto Trait Implementations

impl<K, V> Send for TryHashMap<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for TryHashMap<K, V> where
    K: Sync,
    V: Sync

impl<K, V> Unpin for TryHashMap<K, V> where
    K: Unpin,
    V: Unpin

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<I, T> TryCollect<I> for T where
    T: IntoIterator<Item = I>, 
[src]

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.