pub struct RewritePlan<R, S> { /* private fields */ }
Expand description

A RewritePlan<R> is derived from a data structure instance and indicates how values of type R (short for “rewritten”) should be rewritten. When that plan is recursively applied via Rewrite, the resulting data structure instance will be behaviorally equivalent to the original data structure under a symmetry equivalence relation, enabling symmetry reduction.

Typically the RewritePlan would be constructed by an implementation of Representative for Model::State.

Implementations

Applies the rewrite plan to a value of type R

Returns the state. Useful for debugging

Creates a new rewrite plan from a given state and function

Constructs a RewritePlan by sorting values in a specified iterator. Favor using the RewritePlan::new constructor over this one as it provides additional type safety.

Permutes the elements of a Vec-like collection whose indices correspond with the indices of the Vec-like that was used to construct this RewritePlan.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

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.

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.