spin_core

Trait AsState

Source
pub trait AsState {
    // Required method
    fn as_state(&mut self) -> &mut State;
}
Expand description

For consumers that need to use a type other than State as the Store data, this trait must be implemented for that type.

Required Methods§

Source

fn as_state(&mut self) -> &mut State

Gives access to the inner State.

Implementors§