rust-ux / uX

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

Conversion and Sign Extension #63

Open blitz opened 7 months ago

blitz commented 7 months ago

This is a question not a bug. :)

I'm looking for an ergonomic way to reinterpret a u6 as a i6 to then sign-extend it to i32. Is this possible without transmute at the moment?