rust-ux / uX

Non standard integer types like `u7`, `u9`, `u10`, `u63`, `i7`, `i9`
Apache License 2.0
119 stars 37 forks source link

Implement some num_traits traits #72

Open bbaldino opened 2 months ago

bbaldino commented 2 months ago

I've found myself frequently wanting at least ONE and ZERO values from num_traits, so I took a shot at implementing them here (this required implementing Mul as well).

I know there was some discussion/hesitation about implementing num_traits here, but this was so long ago now I'm thinking perhaps the concerns are no longer relevant.

I did put the feature behind a flag and defaulted num_traits to not using std to maintain that aspect of uX.