[][src]Trait into_inner_drop::DetachedDrop

pub trait DetachedDrop {
    type Implementor;
    fn drop(value: Self::Implementor);
}

A replacement trait for providing Drop implementation.

Since self is not used, it's recommended to create an empty enum and implement this trait for it.

Associated Types

type Implementor

The inner type you want to implement Drop for.

Loading content...

Required methods

fn drop(value: Self::Implementor)

The drop implementation called by IntoInnerHelper<Self::Implementor, Self>.

This function will only be called if into_inner was NOT called.

Loading content...

Implementors

Loading content...