A chiasmus is a rhetorical device used to create a stylized writing effect, in which the second part of a sentence is a mirror image of the first.