This honestly isn't meant as a snarky response... I would google the type of rail and can you're trying to do it with. What you're trying to do seems to be an obsession with a lot of people and I think there's all kinds of fitting dimensions out there that will help you see if you can do it.
Just keep in mind that depending on the type of can, you will still have to be able to lock it into place, which can be tough if the latch is under the rail.