pub fn state_exists_and_equals<S>(
    state: S
) -> impl FnMut(Option<Res<'_, State<S>>>)where
    S: States,
Expand description

Generates a Condition-satisfying closure that returns true if the state machine exists and is currently in state.

The condition will return false if the state does not exist.