Hacker News new | ask | show | jobs
by M2Ys4U 2352 days ago
Raw 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.