Struct fuzzcheck::mutators::tuples::TupleMutatorWrapper [−][src]
pub struct TupleMutatorWrapper<M, TupleKind> where
TupleKind: RefTypes, {
pub mutator: M,
// some fields omitted
}
Fields
mutator: M
Implementations
Trait Implementations
impl<M, TupleKind> Default for TupleMutatorWrapper<M, TupleKind> where
TupleKind: RefTypes,
M: Default,
impl<M, TupleKind> Default for TupleMutatorWrapper<M, TupleKind> where
TupleKind: RefTypes,
M: Default,
impl<T, M, TupleKind> Mutator<T> for TupleMutatorWrapper<M, TupleKind> where
T: Clone + 'static,
TupleKind: RefTypes + 'static,
T: TupleStructure<TupleKind>,
M: TupleMutator<T, TupleKind>,
impl<T, M, TupleKind> Mutator<T> for TupleMutatorWrapper<M, TupleKind> where
T: Clone + 'static,
TupleKind: RefTypes + 'static,
T: TupleStructure<TupleKind>,
M: TupleMutator<T, TupleKind>,
type MutationStep: Clone
type MutationStep: Clone
Contains information about what mutations have already been tried.
type ArbitraryStep: Clone
type ArbitraryStep: Clone
Contains information about what arbitrary values have already been generated.
type UnmutateToken
type UnmutateToken
Describes how to reverse a mutation
The first ArbitraryStep
value to be passed to ordered_arbitrary
Verifies that the value conforms to the mutator’s expectations and, if it does,
returns the Cache
and first MutationStep
associated with that value. Read more
The maximum complexity that a value can possibly have. Read more
The minimum complexity that a value can possibly have. Read more
Computes the complexity of the value. Read more
fn ordered_arbitrary(
&self,
step: &mut Self::ArbitraryStep,
max_cplx: f64
) -> Option<(Value, f64)>
fn ordered_arbitrary(
&self,
step: &mut Self::ArbitraryStep,
max_cplx: f64
) -> Option<(Value, f64)>
Generates an entirely new value based on the given ArbitraryStep
. Read more
Generates an entirely new value. Read more
fn ordered_mutate(
&self,
value: &mut Value,
cache: &mut Self::Cache,
step: &mut Self::MutationStep,
max_cplx: f64
) -> Option<(Self::UnmutateToken, f64)>
fn ordered_mutate(
&self,
value: &mut Value,
cache: &mut Self::Cache,
step: &mut Self::MutationStep,
max_cplx: f64
) -> Option<(Self::UnmutateToken, f64)>
Mutates a value (and optionally its cache) based on the given
MutationStep
. Read more
fn random_mutate(
&self,
value: &mut Value,
cache: &mut Self::Cache,
max_cplx: f64
) -> (Self::UnmutateToken, f64)
fn random_mutate(
&self,
value: &mut Value,
cache: &mut Self::Cache,
max_cplx: f64
) -> (Self::UnmutateToken, f64)
Mutates a value (and optionally its cache). Read more
Undoes a mutation performed on the given value and cache, described by
the given UnmutateToken
. Read more