Struct puffin::fuzzer::mutations::GenerateMutator
source · pub struct GenerateMutator<'a, S, PB: ProtocolBehavior>where
S: HasRand,{
mutation_counter: u64,
refresh_zoo_after: u64,
constraints: TermConstraints,
zoo: Option<TermZoo<PB>>,
signature: &'static Signature<PB::ProtocolTypes>,
put_registry: &'a PutRegistry<PB>,
phantom_s: PhantomData<S>,
with_dy: bool,
}
Expand description
GENERATE: Generates a previously-unseen term using a term zoo
Fields§
§mutation_counter: u64
§refresh_zoo_after: u64
§constraints: TermConstraints
§zoo: Option<TermZoo<PB>>
§signature: &'static Signature<PB::ProtocolTypes>
§put_registry: &'a PutRegistry<PB>
§phantom_s: PhantomData<S>
§with_dy: bool
Implementations§
source§impl<'a, S, PB: ProtocolBehavior> GenerateMutator<'a, S, PB>where
S: HasRand,
impl<'a, S, PB: ProtocolBehavior> GenerateMutator<'a, S, PB>where
S: HasRand,
pub const fn new( mutation_counter: u64, refresh_zoo_after: u64, constraints: TermConstraints, zoo: Option<TermZoo<PB>>, signature: &'static Signature<PB::ProtocolTypes>, put_registry: &'a PutRegistry<PB>, with_dy: bool, ) -> Self
Trait Implementations§
source§impl<'a, S, PB: ProtocolBehavior> Mutator<Trace<<PB as ProtocolBehavior>::ProtocolTypes>, S> for GenerateMutator<'a, S, PB>where
S: HasRand,
impl<'a, S, PB: ProtocolBehavior> Mutator<Trace<<PB as ProtocolBehavior>::ProtocolTypes>, S> for GenerateMutator<'a, S, PB>where
S: HasRand,
source§impl<'a, S, PB: ProtocolBehavior> Named for GenerateMutator<'a, S, PB>where
S: HasRand,
impl<'a, S, PB: ProtocolBehavior> Named for GenerateMutator<'a, S, PB>where
S: HasRand,
Auto Trait Implementations§
impl<'a, S, PB> Freeze for GenerateMutator<'a, S, PB>
impl<'a, S, PB> !RefUnwindSafe for GenerateMutator<'a, S, PB>
impl<'a, S, PB> !Send for GenerateMutator<'a, S, PB>
impl<'a, S, PB> !Sync for GenerateMutator<'a, S, PB>
impl<'a, S, PB> Unpin for GenerateMutator<'a, S, PB>where
S: Unpin,
<PB as ProtocolBehavior>::ProtocolTypes: Unpin,
<<PB as ProtocolBehavior>::ProtocolTypes as ProtocolTypes>::Matcher: Unpin,
impl<'a, S, PB> !UnwindSafe for GenerateMutator<'a, S, PB>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<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.