[][src]Trait lain::traits::VariableSizeObject

pub trait VariableSizeObject {
    fn is_variable_size() -> bool;
}

Trait for objects to derive in order to specify whether or not they are variable-size.

This trait does not strictly need to be implemented, however if your data structures contain dynamic-size fields, the quality of fuzzing may be slightly worse. This is because calling NewFuzzed::new_fuzzed will, if a variable-sized field is in the data structure, initialize its fields in a random order. If you are working with size constraints, it may be useful to #[derive(VariableSizeObject)] to get random field initialization.

Required methods

Loading content...

Implementations on Foreign Types

impl<T> VariableSizeObject for Vec<T>[src]

Loading content...

Implementors

impl VariableSizeObject for AsciiString[src]

impl VariableSizeObject for Utf8String[src]

impl<T> VariableSizeObject for T[src]

Loading content...