pub trait Program: Sized {
type Renderer: Renderer;
type Theme;
type Message: Debug + Send;
// Required methods
fn update(&mut self, message: Self::Message) -> Task<Self::Message>;
fn view(&self) -> Element<'_, Self::Message, Self::Theme, Self::Renderer>;
}
Expand description
The core of a user interface application following The Elm Architecture.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.