Trait ToState

Source
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

Required Methods§

Source

fn to_state(&self) -> State

Implementors§

Source§

impl<State: StateInstance, T: Clone + Into<State>> ToState<State> for T