Debian Codegraph @

src/map/iter.rs

raw symbols SCIP
1 use super::{IntoIter, Iter, IterMut, OrderMap};
2
3 impl<'a, K, V, S> IntoIterator for &'a OrderMap<K, V, S> {
4 type Item = (&'a K, &'a V);
5 type IntoIter = Iter<'a, K, V>;
6
7 fn into_iter(self) -> Self::IntoIter {
8 self.inner.iter()
9 }
10 }
11
12 impl<'a, K, V, S> IntoIterator for &'a mut OrderMap<K, V, S> {
13 type Item = (&'a K, &'a mut V);
14 type IntoIter = IterMut<'a, K, V>;
15
16 fn into_iter(self) -> Self::IntoIter {
17 self.inner.iter_mut()
18 }
19 }
20
21 impl<K, V, S> IntoIterator for OrderMap<K, V, S> {
22 type Item = (K, V);
23 type IntoIter = IntoIter<K, V>;
24
25 fn into_iter(self) -> Self::IntoIter {
26 self.inner.into_iter()
27 }
28 }