StateTrait

Trait StateTrait 

Source
pub trait StateTrait {
    // Required method
    fn to_state(self) -> State;
}
Expand description

Trait to conveniently build a State from one of the possible states

Required Methods§

Source

fn to_state(self) -> State

Convert to a State enum

Implementors§