pub trait PtrAPI<T> { fn unptr(self) -> T where Self: Sized; }
Shared Ptr API, implemented for both ExternalPtr and Box
Consumes self and returns value located on the stack Deref on Box is very special, we can’t emulate if for our own Ptr<T>
self
Deref
Box
Ptr<T>