Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ iter_mut
Method
iter_mut
publication/code/chapter06/hashmap.rs:190–197 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
188
}
189
190
fn iter_mut(&mut self) -> IterMut<T> {
191
let mut iterator = IterMut { stack: Vec::new() };
192
for item in self.data.iter_mut() {
193
iterator.stack.push(item);
194
}
195
196
iterator
197
}
198
}
199
200
// 实现迭代功能
Callers
1
iter
Function · 0.45
Calls
1
push
Method · 0.45
Tested by
no test coverage detected