pub trait IndexedDrop {
    unsafe fn idrop(&mut self, i: u32);
}
Expand description

Trait for properly deallocating Unions that are not Copy.

Unlike the other Indexed* traits, this one is exported because there is no way to avoid mentioning it. For example to require IndexedClone it suffices to require that Coproduct<T> is Clone.

Required Methods

Safety

The argument i must be the index of the active variant of the Union.

Implementors