Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ IntoIter
Class
IntoIter
publication/code/chapter04/lvec.rs:158–158 ·
view source on GitHub ↗
实现三种迭代功能
Source
from the content-addressed store, hash-verified
156
157
// 实现三种迭代功能
158
struct IntoIter<T: Copy + Debug >(LVec<T>);
159
impl<T: Copy + Debug> Iterator for IntoIter<T> {
160
type Item = T;
161
fn next(&mut self) -> Option<Self::Item> {
Callers
1
into_iter
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected