3min chapter

 Rustacean Station  cover image

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

Rustacean Station

CHAPTER

The Future of Baro Checker Errors

In 163, we now have array from FN, which you pass in a closure. And that closure is given the index of the item in the array to generate. So this way, you can just create an array of basically an arbitrary length. You get to decide how to construct every value of that array without using any unsafe code. Box into pin is actually similar. It lets you turn a box of something into a pin box of something without doing a reallocation. This only really matters if you're writing relatively low level async code. But without this, you have to always remember to use box colon colon pin for your pinned heap allocated value.

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