Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ iter_mut
Method
iter_mut
publication/code/chapter04/deque.rs:89–96 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
87
}
88
89
fn iter_mut(&mut self) -> IterMut<T> {
90
let mut iterator = IterMut { stack: Vec::new() };
91
for item in self.data.iter_mut() {
92
iterator.stack.push(item);
93
}
94
95
iterator
96
}
97
}
98
99
// 实现三种迭代功能
Callers
1
iter
Function · 0.45
Calls
1
push
Method · 0.45
Tested by
no test coverage detected