pub struct PacketDuplicateMutator<P> where
    P: Clone
{ /* private fields */ }
Expand description

A mutator that duplicates a single, random packet.

It respects an upper bound on the number of packets passed as an argument to the constructor.

Example

// Make sure that we never exceed 16 packets in an input
let mutator = PacketDuplicateMutator::new(16);

Implementations

Create a new PacketDuplicateMutator with an upper bound on the number of packets

Trait Implementations

Mutate a given input

Post-process given the outcome of the execution

Provide the name of this element.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The Resulting [TupleList], of an Prepend::prepend() call, including the prepended entry. Read more

Prepend a value to this tuple, returning a new tuple with prepended value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.