AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
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.