4 ms·
Yep! It's worth restating the fact that wrapping a pointer in an Option in Rust actually takes up NO extra space, because Rust's smart enough to just optimize i
by giornogiovanna 8y ago
Yep! It's worth restating the fact that wrapping a pointer in an Option in Rust actually takes up NO extra space, because Rust's smart enough to just optimize it back into a nullable pointer.
https://doc.rust-lang.org/std/ptr/struct.NonNull.html https://doc.rust-lang.org/std/ptr/struct.NonNull.html