Can you use edible glitter directly on the cake

I’ve just watched the chocolate wrap tutorials which was amazing, but was surprised at the use of the edible glitter. How edible is the edible glitter? Or is it just non-toxic? I’m a bit confused as to how I can use it, as I thought it wasn’t actually edible? Thanks