[][src]Trait moxie_dom::Stateful

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

A stateful element within the application.

Associated Types

type Output: Child[src]

The value returned from update on each revision.

type Updater: From<Key<Self>>[src]

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

Loading content...

Required methods

pub fn tick(&self, updater: Self::Updater) -> Self::Output[src]

Compute a new version of the output.

Loading content...


Loading content...