gpu_alloc::util

Function arc_unwrap

Source
pub(crate) unsafe fn arc_unwrap<M>(arc: Arc<M>) -> M
Expand description

Can be used instead of Arc::try_unwrap(arc).unwrap() when it is guaranteed to succeed.