title: Is there a way to create a data type that only accepts a range of values?
body: <p>I have a function that takes an argument of type <code>u16</code>. Is there an elegant way to define a custom data type that behaves exactly like a <code>u16</code> but only has values between 0 and 100?</p>