How to filter a vector of custom structs?
It’s very important programming skill to learn how to create a minimal, reproducible example. Your problem can be reduced to this: struct Vocabulary; fn main() { let numbers = vec![Vocabulary]; let other_numbers: Vec<Vocabulary> = numbers.iter().collect(); } Let’s look at the error message for your case: error[E0277]: a collection of type `std::vec::Vec<Vocabulary>` cannot be built from … Read more