| Crates.io | read-primitives |
| lib.rs | read-primitives |
| version | 0.1.1 |
| created_at | 2023-02-06 19:48:30.559726+00 |
| updated_at | 2023-02-06 20:00:39.133735+00 |
| description | read-primitives provides traits to read primitive types from any type that implements std::io::Read |
| homepage | |
| repository | https://github.com/heberlein/read-primitives |
| max_upload_size | |
| id | 778190 |
| size | 19,760 |
read-primitives adds several extension traits, that make it easy to read primitive types from any type that implements std::io::Read
fn main() {
let bytes: [u8; 8] = [24, 45, 68, 84, 251, 33, 9, 64];
let float = bytes.as_slice().read_le_f64().unwrap();
printf!("{float}");
}
3.141592653589793