unsafe fn drop<A: 'static>(ptr: NonNull<AttachmentData<Erased>>)Expand description
Drops the Box<AttachmentData<A>> instance pointed to by this pointer.
ยงSafety
- The caller must ensure that the pointer comes from a
Box<AttachmentData<A>>, which was turned into a pointer usingBox::into_raw. - The attachment type
Amust match the actual attachment type stored in theAttachmentData. - After calling this method, the pointer must no longer be used.