Module traits

Source

Traitsยง

BinarySerialize
Represents a data typethat can be pushed to a byte buffer in a constant, predetermined way.
Fixup
Trait used for performing fixups of a data structure when generating a new struct using NewFuzzed.
Mutatable
A data structure that can be mutated in-place from an existing data structure, possibly generated by NewFuzzed.
NewFuzzed
A data structure that can have a new instance of itself created completely randomly, with optional constraints.
SerializedSize
A trait to represent the output size (in bytes) of an object when serialized to binary.
ToPrimitive
Represents a type which can be converted to a primitive type. This should be used for enums so that the serializer can generically call YourEnum::ToPrimitive()
VariableSizeObject
Trait for objects to derive in order to specify whether or not they are variable-size.