AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Rust's C Style Unions
Rust already has a feature called C style unions, which if you're not familiar with C, imagine kind of enums but with no tag. The idea is here is a piece of data that can be either this or this. And so in this case, that was the clincher for this because we believed it was safe before this man and initialized function, but it wasn't. There's been a lot of work recently studying precisely the effects and implications of unsafe Rust code.