[][src]Trait sauron_native::Component

pub trait Component<MSG> {
    fn update(&mut self, msg: MSG);
fn view(&self) -> Node<MSG>; fn on_event(&mut self, event: Event) { ... }
fn debug(&mut self, s: String) { ... } }

Required methods

fn update(&mut self, msg: MSG)

fn view(&self) -> Node<MSG>

Loading content...

Provided methods

fn on_event(&mut self, event: Event)

fn debug(&mut self, s: String)

Loading content...

Implementors

Loading content...