Trait Component
sauron
pub trait Component<MSG> { fn create() -> Self; fn update(&mut self, msg: MSG); fn view(&self) -> Node<MSG>; fn subscribe(&self); }
fn create() -> Self
fn update(&mut self, msg: MSG)
fn view(&self) -> Node<MSG>
fn subscribe(&self)
impl Component<()> for SimpleComponent
fn update(&mut self, _msg: ())
fn view(&self) -> Node<()>