4 ms·
Doesn't Rust have explicit support for uninitialized memory, using the borrow checker to make sure you don't access it before initializing it? Or does that just
by tsimionescu 2y ago
Doesn't Rust have explicit support for uninitialized memory, using the borrow checker to make sure you don't access it before initializing it? Or does that just work for local variables, not members of structs?
- steveklabnik 2y agoYou can’t do the “declare before initializing” thing with structs, that’s correct.