pub trait StateProgramViewComponent: 'static {
type Program: StateProgram;
// Required method
fn view(
state: &Self::Program,
context: StateProgramViewContext<Self::Program>,
) -> Html;
}Required Associated Types§
type Program: StateProgram
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.