Macro os::ptr_to_opt_ref
source · [−]macro_rules! ptr_to_opt_ref {
($trg:ident) => { ... };
($token:ident,$trg:ident) => { ... };
}
Expand description
Convert user pointer trg:*const T
to Some(trg as & T)
or None
if null.