pub trait IntoState: Sized {
type State: 'static;
// Required methods
fn init(self) -> Self::State;
fn update(self, state: &mut Self::State) -> Then;
}
Expand description
Trait used to create stateful components, see stateful
for details.