[][src]Crate lain_derive

Derive Macros

BinarySerialize

Implements [lain::BinarySerialize] on the given struct/enum. The byteorder of fields can be overridden with #[byteorder(big)] or #[byteorder(little)]

FixupChildren
FuzzerObject
Mutatable

Automatically implements [trait@lain::traits::Mutatable] with basic randomization

NewFuzzed

Implements [rand::distributions::Standard] for enums that derive this trait. This will allow you to use rand::gen() to randomly select an enum value.

PostFuzzerIteration
ToPrimitiveU8
ToPrimitiveU16
ToPrimitiveU32
ToPrimitiveU64
VariableSizeObject

Automatically implements [trait@lain::traits::VariableSizeObject]