pub fn from_ptr_safe<T>(value: *mut T) -> Option<&'static T>
Expand description

Safe version of from_ptr which, if pointer is null, will return None instead of panicking.