Function rustix::utils::option_as_ptr

source ยท
pub(crate) const fn option_as_ptr<T>(t: Option<&T>) -> *const T
Expand description

Convert an Option<&T> into a possibly-null *const T.