I slam my toes into things more often than most people (I get distracted easily). What I do is wrap it with medical tape to the toe beside it.

If it turns black and blue, chances are you've broken it, but there's not much more you can do than wrap it.

HTH, and feel better.

Dogs and nature abhor a vacuum.