Is there a way to get ref from MaybeUninit in stable rust, and when do this feature merge into the stable version ?
You can use as_ptr and deref the raw pointer
let x: MaybeUninit<_> = ,,,;
let x_ref = unsafe { &*x.as_ptr() };
Is there a way to get ref from MaybeUninit in stable rust, and when do this feature merge into the stable version ?
You can use as_ptr and deref the raw pointer
let x: MaybeUninit<_> = ,,,;
let x_ref = unsafe { &*x.as_ptr() };