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