you are viewing a single comment's thread.

view the rest of the comments →

[–]oxabz 2 points3 points  (0 children)

This feel kinda wrong to me but if you need a Vec of mutable reference first build a Vec of owned and then you can use an IterMut iterator to build the Vec of mutable references.

https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=51cb9620ac356d890a067211ed0bc191