pub(crate) const fn select_swimming_state( currently_swimming: bool, env: SwimmingEnvironment, ) -> bool