rust-embedded-community / rust-measurements

Metric, Imperial, and other measurement handling for Rust. Length, Temperature, Weight, and Volume
https://crates.io/crates/measurements
27 stars 10 forks source link

Add a data module #12

Closed thejpster closed 6 years ago

thejpster commented 6 years ago

This is a measure for computer information - the internal value is the octet.

We decided against using the byte as the internal value because its size is architecture-dependent, on DSPs for example a byte could be 16 bits instead of 8 as it is usually understood. The octet on the other hand is always defined as eight bits.