MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / next

Method next

publication/code/chapter04/lvec.rs:161–163  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

159impl<T: Copy + Debug> Iterator for IntoIter<T> {
160 type Item = T;
161 fn next(&mut self) -> Option<Self::Item> {
162 self.0.pop()
163 }
164}
165
166struct Iter<'a, T: 'a> { next: Option<&'a Node<T>> }

Callers 1

hamming_distance_strFunction · 0.45

Calls 1

popMethod · 0.45

Tested by

no test coverage detected