Skip to main content

PartialDrop

Trait PartialDrop 

Source
trait PartialDrop {
    // Required method
    unsafe fn partial_drop(&mut self, alive: IndexRange);
}

Required Methods§

Source

unsafe fn partial_drop(&mut self, alive: IndexRange)

§Safety

self[alive] are all initialized before the call, then are never used (without reinitializing them) after it.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> PartialDrop for [MaybeUninit<T>]

Source§

impl<T, const N: usize> PartialDrop for [MaybeUninit<T>; N]