3 ms·
Rust does not allow null values without resorting to unsafe code.
by timw4mail 8y ago
Rust does not allow null values without resorting to unsafe code.
- cesarb 8y agoTechnically, it does: std::ptr::null and std::ptr::null_mut are not unsafe. (Of course, you cannot try to dereference the resulting pointer without using unsafe.)