In high school, everyone can leave the game once and re-enter as long as they come back in the same place in the batting order, and there are no restrictions as to which position they can play. If she were to not actually leave the batting line-up, but just moved to another defensive position, she could actually keep returning to pitch, but wouldn't be allowed to throw warm-ups if it was in the middle of an inning (believe I have that right).