(&mut self)
| 101 | impl<T: Clone> Iterator for IntoIter<T> { |
| 102 | type Item = T; |
| 103 | fn next(&mut self) -> Option<Self::Item> { |
| 104 | if !self.0.is_empty() { |
| 105 | Some(self.0.data.remove(0)) |
| 106 | } else { |
| 107 | None |
| 108 | } |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | struct Iter<'a, T: 'a> { stack: Vec<&'a T>, } |