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.

Implementors§

Source§

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

Source§

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