autocommit 2022-02-09 17:26:50 CET
This commit is contained in:
parent
4190b910f8
commit
8faab3fe53
25 changed files with 1081 additions and 316 deletions
|
|
@ -77,6 +77,10 @@ impl<K: Eq, V, const N: usize> SmallMap<K, V, N> {
|
|||
pub fn pop(&self) -> Option<(K, V)> {
|
||||
unsafe { self.m.get().deref_mut().pop() }
|
||||
}
|
||||
|
||||
pub fn iter<'a>(&'a self) -> SmallMapIter<'a, K, V, N> {
|
||||
SmallMapIter { pos: 0, map: self }
|
||||
}
|
||||
}
|
||||
|
||||
impl<K: Eq, V: UnsafeCellCloneSafe, const N: usize> SmallMap<K, V, N> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue