[][src]Trait squark::App

pub trait App: 'static + Clone + Default {
    type State: Clone + Debug + PartialEq + 'static;
    type Action: Clone + Debug + 'static;
    fn reducer(
        &self,
        state: Self::State,
        action: Self::Action
    ) -> (Self::State, Task<Self::Action>);
fn view(&self, state: Self::State) -> View<Self::Action>; }

Associated Types

type State: Clone + Debug + PartialEq + 'static

type Action: Clone + Debug + 'static

Loading content...

Required methods

fn reducer(
    &self,
    state: Self::State,
    action: Self::Action
) -> (Self::State, Task<Self::Action>)

fn view(&self, state: Self::State) -> View<Self::Action>

Loading content...

Implementors

Loading content...