Add UnordMap::clear
method
This commit is contained in:
parent
7d40450b2d
commit
186e282a43
1 changed files with 5 additions and 0 deletions
|
@ -602,6 +602,11 @@ impl<K: Eq + Hash, V> UnordMap<K, V> {
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|(_, v)| v)
|
.map(|(_, v)| v)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
pub fn clear(&mut self) {
|
||||||
|
self.inner.clear()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<K, Q: ?Sized, V> Index<&Q> for UnordMap<K, V>
|
impl<K, Q: ?Sized, V> Index<&Q> for UnordMap<K, V>
|
||||||
|
|
Loading…
Add table
Reference in a new issue