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

Trait Reducible

source
pub trait Reducible {
    type Action;

    // Required method
    fn reduce(self: Rc<Self>, action: Self::Action) -> Rc<Self>;
}
Expand description

A trait that implements a reducer function of a type.

Required Associated Types§

source

type Action

The action type of the reducer.

Required Methods§

source

fn reduce(self: Rc<Self>, action: Self::Action) -> Rc<Self>

The reducer function.

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.

Implementors§