Struct splay_tree::map::VacantEntry
[−]
[src]
pub struct VacantEntry<'a, K: 'a, V: 'a> { /* fields omitted */ }
A vacant Entry.
Methods
impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> where
K: Ord,
[src]
K: Ord,
pub fn key(&self) -> &K
[src]
Gets a reference to the key that would be used when inserting a value through the VacantEntry.
pub fn insert(self, value: V) -> &'a mut V
[src]
Sets the value of the entry with the VacantEntry's key, and returns a mutable reference to it.
Trait Implementations
Auto Trait Implementations
impl<'a, K, V> Send for VacantEntry<'a, K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<'a, K, V> Sync for VacantEntry<'a, K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,