pub trait ScreenView<C: PixelColor, M: Clone> {
// Required methods
fn name(&self) -> &'static str;
fn view(&self) -> Element<'_, C, M>;
fn theme(&self) -> &Theme<'_, C>;
}Expand description
Per-screen contract.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".