Struct im::hashmap::OccupiedEntry[][src]

pub struct OccupiedEntry<'a, K, V, S> where
    K: 'a + Hash + Eq + Clone,
    V: 'a + Clone,
    S: 'a + BuildHasher
{ /* fields omitted */ }

An entry for a mapping that already exists in the map.

Methods

impl<'a, K, V, S> OccupiedEntry<'a, K, V, S> where
    K: 'a + Hash + Eq + Clone,
    V: 'a + Clone,
    S: 'a + BuildHasher
[src]

Get the key for this entry.

Remove this entry from the map and return the removed mapping.

Get the current value.

Get a mutable reference to the current value.

Convert this entry into a mutable reference.

Overwrite the current value.

Remove this entry from the map and return the removed value.

Auto Trait Implementations

impl<'a, K, V, S> Send for OccupiedEntry<'a, K, V, S> where
    K: Send + Sync,
    S: Send + Sync,
    V: Send + Sync

impl<'a, K, V, S> Sync for OccupiedEntry<'a, K, V, S> where
    K: Send + Sync,
    S: Send + Sync,
    V: Send + Sync