[][src]Trait const_field_offset::PinnedDrop

pub trait PinnedDrop {
    fn drop(self: Pin<&mut Self>);
}

This trait needs to be implemented if you use the #[pin_drop] attribute. It enables you to implement Drop for your type safely.

Required methods

fn drop(self: Pin<&mut Self>)

This is the equivalent to the regular Drop trait with the difference that self is pinned.

Loading content...

Implementors

Loading content...