pub fn pin_mut<Storage, T, S>(state: &mut State<Storage, T, S>) -> Pin<&mut T>where
T: StateMachineImpl,
Storage: SPinMut,Expand description
Mutably borrows a state’s runtime value through its storage’s pin guarantee.
Most pinned transitions should use pinned transition plus
transition!(pin state, ...) instead of calling
this directly. It is provided for implementation methods that need to call
additional pinned APIs before deciding whether to transition.