StateProgramViewComponent

Trait StateProgramViewComponent 

Source
pub trait StateProgramViewComponent: 'static {
    type Program: StateProgram;

    // Required method
    fn view(
        state: &Self::Program,
        context: StateProgramViewContext<Self::Program>,
    ) -> Html;
}

Required Associated Types§

Required Methods§

Source

fn view( state: &Self::Program, context: StateProgramViewContext<Self::Program>, ) -> Html

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.

Implementors§