danlehmann / arbitrary-int

A modern and lightweight implementation of arbitrary integers for Rust
MIT License
31 stars 12 forks source link

Provide a first impl for le, be conversions (u24) #15

Closed hecatia-elegua closed 1 year ago

hecatia-elegua commented 1 year ago

Part of #9. Declarative macros are pretty annoying.

Right now I really needed u24, so I just finished that. It's really just a writing-marathon now, or a task for some declarative macro genius. Or I'm tired.

Would love to see this merged + released :)

hecatia-elegua commented 1 year ago

Small note about this: really only swap_bytes, from_ne_bytes, to_ne_bytes do something, the other stuff just routes stuff, exactly like the std lib.