Basic types like u32 have plenty more operations, like:
- wrapping_add
- checked_add
- overflowing_add
- saturating_add
- mul_add
- saturating_add_signed (wow)
- is_power_of_two
And plenty more. All of those should be supported.
Some of that is already supported through num_traits, but a) not everyone might want that dependency and b) that is only a subset of the functionality.
Basic types like u32 have plenty more operations, like:
And plenty more. All of those should be supported.
Some of that is already supported through num_traits, but a) not everyone might want that dependency and b) that is only a subset of the functionality.