|
|
|
|
|
by vvanders
3693 days ago
|
|
Yup, I've got the same feeling here. If you've spent more than a cursory time with Rust this is pretty straightforward. You'd represent this in Java(minus move semantics, because Java has nothing like that) via: class IntoIter {
public Cycle<T extends Clone> { ... }
...
}
Where Clone is just an interface that knows how to clone its value. |
|
I think the point still holds. Maybe just not for that one.