JonathanWoollett-Light / ux2

Non-standard integer types like u7, u9, u10, u63, i7, i9 etc.
Apache License 2.0
10 stars 1 forks source link

[Feature request]: Support `NonZeroU*` #57

Open al8n opened 1 month ago

al8n commented 1 month ago

Hi, thanks for the amazing crate, may I ask for supporting NonZeroU* structs?

JonathanWoollett-Light commented 1 month ago

It is possible to partially support NonZero structs but the traits and intrinsics used to ensure that size_of::<Option<NonZeroU8>>() == size_of::<NonZeroU8>() are not available for usage outside core. Would this still be useful without the memory optimization?