I\'m trying to figure out an efficient Rust way of consuming elements of a vector and replacing them with one or more elements (of the same type) like in the non-compiling examp