Aethersong

joined 1 year ago
[–] Aethersong@lemmy.world 1 points 1 year ago

You might be able to make num a newtype and make a custom implementation of the Add trait for it that checks that it is in bounds