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

Trait yew::functional::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.

Object Safety§

This trait is not object safe.

Implementors§