Trait const_field_offset::PinnedDrop[][src]

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

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

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

Implementors