danlehmann / arbitrary-int

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

Implement swap_bytes() for bit widths that are multiple of 8 #16

Closed danlehmann closed 1 year ago

hecatia-elegua commented 1 year ago

core::mem::size_of::<$base_data_type>() << 3 nice, tbh I didn't know about this, that's far easier