rust-ux / uX

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

Add an associated constant giving the number of bits #15

Closed glandium closed 6 years ago

kjetilkjeka commented 6 years ago

Thanks for the PR @glandium

Do you mind explaining when you find this constant usefull?

kjetilkjeka commented 6 years ago

I'm currently thinking this Trait would allow implementing the const and keeping this crate similar to the stlib types. Would this be a satisfying solution for you @glandium ?

This has been talked about in phil-opp/rust-bit-field#14

glandium commented 6 years ago

fair enough

kjetilkjeka commented 6 years ago

closing in favor of phil-opp/rust-bit-field#14