pub trait UseOnDrop: Sealed {
// Required method
fn use_on_drop<F>(&mut self, f: F)
where F: FnMut() + 'static;
}Required Methods§
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".