In Rust, Option<Box<T>> uses the same memory layout as Box<T>, e.g. Option takes no space. The Rust compiler knows that pointers cannot be null, so uses the null bit pattern to encode None.
Jan 5, 2023 · 9:43 AM UTC
4
28
509
51,496



