Skip to main content

PlaceDrop

Trait PlaceDrop 

Source
pub unsafe trait PlaceDrop<P>
where P: Projection + ?Sized, P::Target: HasPlace, Self: HasPlace<Target = P::Source>,
{ // Required method unsafe fn drop(ptr: *mut Self, p: &P); }
Expand description

Drop the contents of a subplace.

Required Methods§

Source

unsafe fn drop(ptr: *mut Self, p: &P)

Should call drop_in_place on the subplace.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§