Rustacean Station  cover image

Presser with Gray Olson

Rustacean Station

00:00

The Rust Reference Says That a Value of Some Type Has to Be Valid

The Rust reference says that a value of some type has to be valid at all times. It is invalid to create a reference to an uninitialized u 32, or to create a mutable reference to an initialized u 32. That's the only requirement for a utility to be valid is that it must be initialize. Otherwise, any bit pattern is valid.

Play episode from 45:33
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app