Article snapshot taken from Wikipedia with creative commons attribution-sharealike license.
Give it a read and then ask your questions in the chat.
We can research this topic together.
Rimming sugar is a sugar-based preparation used to decorate and flavor the rims of cocktail glasses. Rimming sugar is often flavored with fruit juice, spices or other flavorings, and different varieties are best suited to different cocktails. It is typically sold in round tins sized to allow the top of the glass to be placed upside down into the sugar in the tin.