[][src]Trait moxie_dom::Stateful

pub trait Stateful: Debug + Sized + 'static {
    type Output: Child;
    type Updater: From<Key<Self>>;
    fn tick(&self, updater: Self::Updater) -> Self::Output;

A stateful element within the application.

Associated Types

type Output: Child

The value returned from update on each revision.

type Updater: From<Key<Self>>

The type used to generate updates to the app, typically a wrapper around moxie::Keys.

Loading content...

Required methods

fn tick(&self, updater: Self::Updater) -> Self::Output

Compute a new version of the output.

Loading content...


Loading content...