spin_coreTrait 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.
Gives access to the inner State
.