Trait yoke::erased::ErasedDestructor

source ·
pub trait ErasedDestructor: 'static { }
Expand description

Dummy trait that lets us dyn Drop

dyn Drop isn’t legal (and doesn’t make sense since Drop is not implement on all destructible types). However, all trait objects come with a destructor, so we can just use an empty trait to get a destructor object.

Implementors§

source§

impl<T: 'static> ErasedDestructor for T