That’s using AsRef right?
-
-
-
Turns out I need to use `IntoIterator` here to automatically convert my thing into an Iterator :Dhttps://twitter.com/killercup/status/1009079568077115393 …
End of conversation
New conversation -
-
-
Ahh, perfect! :D
End of conversation
New conversation -
-
If the type has the Iterator trait and gets put into the position after "in" rustc infers it needs an Iterator and implicitly calls iter/into_iter
-
This looks to be the correct answer: I need to implement IntoIterator for my initial type :Dhttps://twitter.com/killercup/status/1009079568077115393 …
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.