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
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner