number-bytes
Rust library that provides a simple trait for converting generic numeric types to and from bytes. Provides the functionality of the to_xx_bytes and from_xx_bytes functions of Rust's numeric types under a trait and a constant value telling how many bytes the type uses.