Struct fuzzcheck::mutators::boxed::BoxMutator[][src]

pub struct BoxMutator<M> {
    pub mutator: M,
}

Fields

mutator: M

Implementations

Trait Implementations

Returns the “default value” for a type. Read more

Accompanies each value to help compute its complexity and mutate it efficiently.

Contains information about what mutations have already been tried.

Contains information about what arbitrary values have already been generated.

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.

The minimum complexity that a Value can possibly have.

Computes the complexity of the value. Read more

Generates an entirely new value based on the given ArbitraryStep. Read more

Generates an entirely new value. The generated value should be smaller than the given max_cplx. However, if that is not possible, then it should return a value of the lowest possible complexity. Returns the value itself and its complexity, which must be equal to self.complexity(value, cache) Read more

Mutates a value (and optionally its cache) based on the given MutationStep. The mutated value should be within the given max_cplx. Returns None if it no longer possible to mutate the value to a new state, or if it is not possible to keep it under max_cplx. Otherwise, return the UnmutateToken that describes how to undo the mutation as well as the new complexity of the value. Read more

Mutates a value (and optionally its cache). The mutated value should be within the given max_cplx. But if that is not possible, then it should mutate the value so that it has a minimal complexity. Returns the UnmutateToken that describes how to undo the mutation as well as the new complexity of the value. Read more

Undoes a mutation performed on the given value and cache, described by the given UnmutateToken. Read more

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

Performs the conversion.

Performs the conversion.

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.