3 ms·
> in C that would mean a null pointer It's a Rust-ism. In Rust there is no null.
by zamalek 6y ago
> in C that would mean a null pointer
It's a Rust-ism. In Rust there is no null.
- M2Ys4U 6y agoRaw pointers in Rust can be null. (star)const T and (star)mut T both have an is_null method and there is std::ptr::null and std::ptr::null_mut available to create null pointers.