Skip to main content

DropPlace

Trait DropPlace 

Source
pub unsafe trait DropPlace: PlaceHandle {
    // Required method
    unsafe fn drop_place(self);
}
Expand description

Drop the contents of a place.

This operation should only drop the value at the place and not invalidate the proxy itself. A new value might be moved back in later with WritePlace.

Calls to Self::drop_place are emitted by the compiler as part of dropping a PlaceProxy that’s partially moved out.

Required Methods§

Source

unsafe fn drop_place(self)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> DropPlace for *mut T

Source§

unsafe fn drop_place(self)

Implementors§

Source§

impl<H> DropPlace for PinnedHandle<H>
where H: DropPlace,

Source§

impl<T> DropPlace for BoxHandle<T>

Source§

impl<T> DropPlace for MutHandle<'_, T>