[][src]Module lain::traits

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.

FixupChildren

Helper trait for calling self.fixup(mutator) on all child members.

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.

PostFuzzerIteration

Trait used for signaling to all children of self the result of the previous fuzzer iteration.

PostFuzzerIterationBase

Trait used for signaling the result of the previous fuzzer iteration.

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.