Skip to main content

UseOnDrop

Trait UseOnDrop 

Source
pub trait UseOnDrop: Sealed {
    // Required method
    fn use_on_drop<F>(&mut self, f: F)
       where F: FnMut() + 'static;
}

Required Methods§

Source

fn use_on_drop<F>(&mut self, f: F)
where F: FnMut() + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl UseOnDrop for Hooks<'_, '_>