Skip to main content

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§