Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ IntoIter
Class
IntoIter
code/chapter03/linked_list.rs:81–81 ·
view source on GitHub ↗
实现三种迭代功能
Source
from the content-addressed store, hash-verified
79
80
// 实现三种迭代功能
81
pub struct IntoIter<T>(List<T>);
82
impl<T> Iterator for IntoIter<T> {
83
type Item = T;
84
fn next(&mut self) -> Option<Self::Item> {
Callers
1
into_iter
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected