byteme 0.0.5

Converts a struct into Vec<u8> and back. The conversion is Big Endian by default.
Documentation
1
2
3
4
pub const ERROR_STRUCT_NAMED_FIELD: &str = "`ByteMe` only works for a struct with named fields";
pub const ERROR_ATTRIBUTE_ARGS_LENGTH: &str = "`#[byte_me()]` can only define one argument";
pub const ERROR_ATTRIBUTE_DATA_TYPE: &str = "`#[byte_me()]` can only be used with `u8`, `u16`, `u32`, `u64` & `u128`";
pub const ERROR_FIELD_ARRAY_DATA_TYPE: &str = "Array field is only supported for `u8`";