pub trait Model:
Send
+ Sync
+ Sized
+ 'static {
// Required methods
fn update(&mut self, msg: &dyn Msg) -> Cmd;
fn view(&self) -> View;
// Provided method
fn init(&self) -> Cmd { ... }
}Expand description
Model defines the application state machine according to The Elm Architecture in Bubble Tea v2.0.8.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".