Searched refs:from_inner (Results 1 – 2 of 2) sorted by relevance
177 Ok(unsafe { Self::from_inner(Box::leak(inner).into()) }) in try_new()210 unsafe fn from_inner(inner: NonNull<ArcInner<T>>) -> Self { in from_inner() method257 unsafe { Self::from_inner(NonNull::new(ptr as _).unwrap()) } in from_foreign()285 unsafe { Self::from_inner(self.ptr) } in clone()423 ManuallyDrop::new(unsafe { Arc::from_inner(b.inner) }) in from()537 inner: unsafe { Arc::from_inner(Box::leak(inner).into()) }, in try_new_uninit()561 inner: unsafe { Arc::from_inner(inner.cast()) }, in assume_init()
22 Ok(Arc::from_inner(ptr)) in downcast()