| Crates.io | read-from |
| lib.rs | read-from |
| version | 0.5.2 |
| created_at | 2020-11-17 01:17:58.025633+00 |
| updated_at | 2020-11-17 04:43:25.917621+00 |
| description | Supplies the ReadFrom and WriteTo traits. |
| homepage | |
| repository | https://github.com/sampersand/read_from |
| max_upload_size | |
| id | 313131 |
| size | 9,576 |
read-fromThe ReadFrom and WriteTo traits.
These traits allow you to represent the ability of a type to be serialized/
deserialized into an arbitrary byte stream. Because there's no universal way to
represent integers (outside of u8 and i8), endian types are provided to
explicitly denote the endianness when deserializing.
This is not the same as serde! Serde is used to
serialize/deserialize types regardless of the data format. The ReadFrom/
WriteTo traits are intended to be used at a lower-level, where details such
as the ordering of bytes is important.