pub trait ToState<State: StateInstance> {
// Required method
fn to_state(&self) -> State;
}
Expand description
Trait to define a StateInstance
representation of a (possibly non-StateInstance
) value
pub trait ToState<State: StateInstance> {
// Required method
fn to_state(&self) -> State;
}
Trait to define a StateInstance
representation of a (possibly non-StateInstance
) value