3 ms·
> Option can still be NULL ("None" in rust) 'None' in Rust is part of the Option enum, not an equivalent to null. pub enum Option<T> { None, Som
by jhomedall 8y ago
> Option can still be NULL ("None" in rust)
'None' in Rust is part of the Option enum, not an equivalent to null.
pub enum Option<T> {
None,
Some(T),
}
- estebank 8y agoIt can be at the machine level. If T is NonZero, then sizeof(Option<T>) == sizeof(T).