make_basic_tuple_mutator!() { /* proc-macro */ }
Expand description

Create a tuple-mutatpr for of the given arity.

This function can only be used within fuzzcheck itself.

make_basic_tuple_mutator!(2);
// now the type Tuple2Mutator<M1, M2> is available
// It implements TupleMutator<T, Tuple2<A, B>> if M1: Mutator<A> and M2: Mutator<B>
let tuple_mutator = Tuple2Mutator::new(bool::default_mutator(), i8::default_mutator());
// tuple_mutator impl Tuple2Mutator<T, Tuple2<bool, i8>>
// to get a regular Mutator<(A, B)>, wrap the generated tuple-mutator with a TupleMutatorWrapper
let mutator = TupleMutatorWrapper::new(tuple_mutator);
// mutator impl Mutator<(A, B)>