pub fn state_exists<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.