How can I create a vector of structs in a loop
I’m trying to learn Rust and am using the advent of code to do so. I’ve just started and have decided to have a vector containing "Elf" structs, of which each will contain a vector calory_items. I’m trying to create this from a text file and have the following code: use std::io::{self, BufReader}; use std::path::Path;… Read More How can I create a vector of structs in a loop