I'm trying to follow https://rust-lang.github.io/api-guidelines/flexibility.html#functions-minimize-assumptions-about-parameters-by-using-generics-c-generic.
Right now I have a function that takes in a &Vec<T>. If I change it to take in a IntoIterator, how do I call this function with the old arguments? Minimal example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=3ae057aee988bac8835de4d45e54a135
Thanks.
A browser interface to the Rust compiler to experiment with the language
This is a set of recommendations on how to design and present APIs for the Rust programming language.