Struct OnDrop
rustc_data_structures
pub struct OnDrop<F: Fn()>(pub F);
impl<F: Fn()> Drop for OnDrop<F>
fn drop(&mut self)
Executes the destructor for this type. Read more
impl<F> Send for OnDrop<F> where F: Send,
impl<F> Sync for OnDrop<F> where F: Sync,