read-primitives 0.1.1

read-primitives provides traits to read primitive types from any type that implements std::io::Read
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# read-primitives


`read-primitives` adds several extension traits, that make it easy to read primitive types from any type that implements `std::io::Read`

## Examples


```rust

    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