A chiasm is a literary structure where the words of the first passage are repeated in reverse order in the second. Typically whatever is in the center of the chiasm is what is being emphasized. In Genesis 2:2 the emphasis is on God’s rest.