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

Class IntoIter

publication/code/chapter04/linked_list.rs:86–86  ·  view source on GitHub ↗

实现三种迭代功能

Source from the content-addressed store, hash-verified

84
85// 实现三种迭代功能
86struct IntoIter<T>(List<T>);
87impl<T> Iterator for IntoIter<T> {
88 type Item = T;
89 fn next(&mut self) -> Option<Self::Item> {

Callers 1

into_iterMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected