TeaModel

Trait TeaModel 

Source
pub trait TeaModel:
    'static
    + Default
    + Clone
    + PartialEq {
    type Action;

    // Required method
    fn update(&mut self, action: Self::Action);
}
Expand description

Trait representing a TEA model in Dioxus.

Required Associated Types§

Source

type Action

The type of actions that can be processed by this model.

Required Methods§

Source

fn update(&mut self, action: Self::Action)

Updates the model state based on the provided action.

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§