Any help would be greatly appreciated! I might be using the wrong data type, or maybe there is an existing method to append numbers to the vector. I've tried saving the current vector, appending three to that vector, and inserting the new vector but I always run into some referencing problem.
As the error message indicates, HashMaps don't support mutable indexing for whatever reason. The shortest way I can come up with to do what you want is to use HashMap::entry:
It actually used to, way back before Rust 1.0, but that led to some confusion around whether indexing should be able to set a value as well as mutate it:
let mut map = HashMap::new();
map["foo"] = 123; // This was a panic, rather than insert!