Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: