Crate tox_binary_io

Source

Macros§

encode_decode_test
Create test that encodes/decodes specified value and checks that result equals original value. Type of this value should implement ToBytes, FromBytes, Clone, Eq traits.
unpack
Extract inner content of enums.

Enums§

GenError
Base type for generator errors

Traits§

FromBytes
The trait provides method to deserialize struct from raw bytes
ToBytes
The trait provides method to serialize struct into raw bytes

Functions§

gen_error
Generator that returns specified error.
gen_len_limit
Generator that ensures that length of serialized data does not exceed specified limit.

Type Aliases§

IResult
Holds the result of parsing functions