pub struct PacketDeleteMutator<P> { /* private fields */ }
Expand description

A mutator that deletes a single, random packet.

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

Example

// Make sure that we always have at least 4 packets in an input
let mutator = PacketDeleteMutator::new(4);

Implementations

Create a new PacketDeleteMutator with a lower 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.