(&mut self)
| 82 | impl<T: Clone> Iterator for IntoIter<T> { |
| 83 | type Item = T; |
| 84 | fn next(&mut self) -> Option<Self::Item> { |
| 85 | if !self.0.is_empty() { |
| 86 | Some(self.0.data.remove(0)) |
| 87 | } else { |
| 88 | None |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | struct Iter<'a, T: 'a> { stack: Vec<&'a T>, } |