pub trait Program: Sized {
type Renderer: Renderer + Renderer;
type Message: Debug + Send;
type Theme;
// Required methods
fn update(&mut self, message: Self::Message) -> Task<Self::Message>;
fn view(
&self,
window: Id,
) -> Element<'_, Self::Message, Self::Theme, Self::Renderer>;
}
Available on crate feature
multi-window
only.Expand description
The core of a user interface for a multi-window 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.