This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.
yew::functional

Trait TearDown

Source
pub trait TearDown: Sized + 'static {
    // Required method
    fn tear_down(self);
}
Expand description

Trait describing the destructor of use_effect hook.

Required Methods§

Source

fn tear_down(self)

The function that is executed when destructor is called

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.

Implementations on Foreign Types§

Source§

impl TearDown for ()

Implementors§

Source§

impl<F: FnOnce() + 'static> TearDown for F