mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +11:00
Implement all of VacantEntry
This commit is contained in:
parent
6bc3816b29
commit
2b75ce6cbd
|
@ -198,6 +198,14 @@ pub struct VacantEntry<'a, K: 'a, V: 'a> {
|
|||
}
|
||||
|
||||
impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
|
||||
pub fn key(&self) -> &K {
|
||||
&self.key
|
||||
}
|
||||
|
||||
pub fn into_key(self) -> K {
|
||||
self.key
|
||||
}
|
||||
|
||||
pub fn insert(self, value: V) -> &'a mut V
|
||||
where
|
||||
K: Hash + Eq,
|
||||
|
|
Loading…
Reference in a new issue