Struct butterfly_fuzz::PacketDeleteMutator
source · [−]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
sourceimpl<P> PacketDeleteMutator<P>
impl<P> PacketDeleteMutator<P>
Trait Implementations
sourceimpl<I, S, P> Mutator<I, S> for PacketDeleteMutator<P> where
I: Input + HasLen + HasPackets<P>,
S: HasRand + HasMaxSize,
impl<I, S, P> Mutator<I, S> for PacketDeleteMutator<P> where
I: Input + HasLen + HasPackets<P>,
S: HasRand + HasMaxSize,
Auto Trait Implementations
impl<P> RefUnwindSafe for PacketDeleteMutator<P> where
P: RefUnwindSafe,
impl<P> Send for PacketDeleteMutator<P> where
P: Send,
impl<P> Sync for PacketDeleteMutator<P> where
P: Sync,
impl<P> Unpin for PacketDeleteMutator<P> where
P: Unpin,
impl<P> UnwindSafe for PacketDeleteMutator<P> where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [TupleList], of an Prepend::prepend() call,
including the prepended entry. Read more
sourcefn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.