5 ms·
That ::<TYPE> thing at the end is called a turbofish. It is rarely necessary to give it explicitly (but sometimes you do when the compiler cannot infer the retu
by dhosek 2y ago
That ::<TYPE> thing at the end is called a turbofish. It is rarely necessary to give it explicitly (but sometimes you do when the compiler cannot infer the return type on its own—thusfar in my own rust coding I’ve needed it exactly once).
- karunamurti 2y agohttps://turbo.fish/ https://turbo.fish/
- bluejekyll 2y agoIt’s useful to know the full syntax, I’ve definitely encountered needing it more than one time.