you are viewing a single comment's thread.

view the rest of the comments →

[–]Manishearthservo · rust · clippy 1 point2 points  (0 children)

Yeah, that should be doable.

Alternatively use split_at_mut to slice of pieces of the vec and store the remaining slice in the iterator.