pub trait TearDown: Sized + 'static {
// Required method
fn tear_down(self);
}
Expand description
Trait describing the destructor of use_effect
hook.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.