[][src]Enum idmap::Entry

pub enum Entry<'a, K: IntegerId + 'a, V: 'a, T: 'a + EntryTable<K, V>> {
    Occupied(OccupiedEntry<'a, K, V, T>),
    Vacant(VacantEntry<'a, K, V, T>),
}

Variants

Occupied(OccupiedEntry<'a, K, V, T>)
Vacant(VacantEntry<'a, K, V, T>)

Implementations

impl<'a, K: IntegerId + 'a, V: 'a, T: EntryTable<K, V>> Entry<'a, K, V, T>[src]

pub fn or_insert(self, value: V) -> &'a mut V[src]

pub fn or_insert_with<F>(self, func: F) -> &'a mut V where
    F: FnOnce() -> V, 
[src]

Auto Trait Implementations

impl<'a, K, V, T> RefUnwindSafe for Entry<'a, K, V, T> where
    K: RefUnwindSafe,
    T: RefUnwindSafe,
    V: RefUnwindSafe

impl<'a, K, V, T> Send for Entry<'a, K, V, T> where
    K: Send,
    T: Send,
    V: Send

impl<'a, K, V, T> Sync for Entry<'a, K, V, T> where
    K: Sync,
    T: Sync,
    V: Sync

impl<'a, K, V, T> Unpin for Entry<'a, K, V, T> where
    K: Unpin

impl<'a, K, V, T> !UnwindSafe for Entry<'a, K, V, T>

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, 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.