Closed fabianfreyer closed 1 year ago
Well, actually it was a design decision, so the width of the interval can be represented by an unsigned integer of the same kind as the bounds, e.g., the number of elements in the interval whole_u8
is 256, which is cannot be represented in a u8
.
The functions to get the min and max are u8::min_value()
and u8::max_value()
, implemented by the trait Width
in the file ops.rs
.
For example: