pub struct FilterMutator<M, F> {
    pub mutator: M,
    pub filter: F,
}

Fields

mutator: Mfilter: F

Trait Implementations

type Cache: Clone

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

type MutationStep: Clone

Contains information about what mutations have already been tried.

type ArbitraryStep: Clone

Contains information about what arbitrary values have already been generated.

type UnmutateToken

Describes how to reverse a mutation

The first ArbitraryStep value to be passed to ordered_arbitrary

Quickly verifies that the value conforms to the mutator’s expectations

Verifies that the value conforms to the mutator’s expectations and, if it does, returns the Cache associated with that value. Read more

Returns the first MutationStep associated with the value and cache. Read more

The log2 of the number of values that can be produced by this mutator, or an approximation of this number (e.g. the number of bits that are needed to identify each possible 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. Read more

Mutates a value (and optionally its cache) based on the given MutationStep. Read more

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

Call the given closure on all subvalues and their complexities.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Create a mutator which wraps self but only produces values for which the given closure returns true Read more

Create a mutator which wraps self and transforms the values generated by self using the map closure. The second closure, parse, should apply the opposite transformation. Read more

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.