pub(crate) fn next_moment<F>( index: Moment, location: Location, condition: F, ) -> RataDiewhere F: Fn(Moment, Location) -> bool,