• Custom User Avatar

    Or just add Copy trait to T...

  • Custom User Avatar

    T doesn't implement Copy but Vec implements IntoIterator, which means you can call into_iter() and get T. (instead of &T that you get from iter() that you can't collect() )

    I had to look at the solutions to notice usage of into_iter() and google the difference between it and iter() I was used to.
    Not an obvious thing if you're new to the language like I am.

  • Custom User Avatar

    Set up is always like this in Rust katas. Not an issue.