Hi
Has the bleeding stopped now? If not, please see an out of hours vet asap as an emergency, as which continued bleeding counts. The night time fees are pretty horrendous so you want to see them only with a potentially life-threatening problem.
List Of Life And Death Out-of-hours Emergencies
If yes, please gentle disinfect the area with homemade saline (250 ml / half pint of boiled, cooled water into which you stir 1 teaspoon of salt) once the bleeding has stopped and the wound has dried up a little. Make sure that you tidy up his normal sleeping area or place a clean fleece over it.
First Aid Kit: Easily available non-medication support products for an emergency
Please contact your regular vets first thing in the morning and have the toe checked. Depending on the damage to the toe, the quick and the nail bed, the nail may never grow back or eventually rather thickened; the swelling is to be expected with a more severe injury, as is the pain.
It sounds rather like he has had his nail caught and ripped off and injured the quick, but he may also have injured some small toe bones at the very worst if the toe twisted badly in the process.
However, it will ultimately not impact on his mobility except that he may no longer race at top speed but you want to avoid the risk of an infection.
My 'pocket rocket' Morwenna managed to do some major damage while we were away for a week and ended up with a toe that never grew and only started to regrow a nail bout 4 years later. Nevertheless, she became my only piggy who celebrated her 8th adoption anniversary. She was no longer able to race around the room at top speed but had an otherwise fulfilled and active long life.
All the best.