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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.