5min chapter

 Rustacean Station  cover image

What's New in Rust 1.62, 1.63, and 1.64

Rustacean Station

CHAPTER

Turbo Fishing

The idea is if you have a function that is generic over any type, you can give it a type parameter after the name. And turbo fish is just a way of calling a function with giving it those type parameters and then an impol trait argument. So in the past, if you had any, uh, impol trait arguments to a function at all, you just couldn't use the turbo fish to call that function. In rush 2018, they've basically added this ability to explicitly give types even for impol traits. They're not going to come through the turbo fish, because now we've stabilized that you can use the turboFish.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode