Rust Vec не может двигаться

You can't do a move using an indexing op because they are defined using references. Rust is notably missing a move reference, so you can't use an indexing op to move out of a vector.

Use .get() or .get_mut()
Zwazel