4 ms·
You use the Option type. Option can either be None or Some(T). I think Rust optimizes this to (non)null, so there is very little, if any, overhead compared to t
by Skinney 13y ago
You use the Option type. Option can either be None or Some(T). I think Rust optimizes this to (non)null, so there is very little, if any, overhead compared to the equivelent C++ code.
- steveklabnik 13y agoIt compiles down to a nullable pointer if possible, and if not, it needs a tag, so yes, it's very minimal if any.