drop

Function drop 

Source
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 using Box::into_raw.
  • The attachment type A must match the actual attachment type stored in the AttachmentData.
  • After calling this method, the pointer must no longer be used.