[][src]Trait easy_pin::PinDrop

pub trait PinDrop: Drop {
    unsafe fn drop_pinned(self: Pin<&mut Self>);
}

Required methods

unsafe fn drop_pinned(self: Pin<&mut Self>)

Safety

  • PinDrop::drop_pinned must never be called directly, only by Drop::drop (e.g., generated by #[easy_pin(Drop)])

  • However, it must always be safe to call on Drop, even when Self has never been behind a Pin-ned pointer.

Loading content...

Implementors

Loading content...