Skip to main content

Module structural_mutate

Module structural_mutate 

Source
Expand description

Native Rust structural mutation and mapping.

structural_mutate lets a mutator drive recursion, while structural_map applies callbacks around engine-owned recursion.

Re-exports§

pub use super::unchanged::Unchanged;
pub use super::unchanged::UnchangedOr;

Structs§

InplaceValue
Engine-issued permission to attempt in-place mutation of one value.
MapValue
Borrowed value passed to structural map and mutation callbacks. A borrowed value shared by structural visit and map callbacks.
MutateCallbacks
A reusable typed-dispatch or callback mutator with shared user state.
MutateContext
State and recursive operations available to a callback-chain mutation.
Mutator
Recursion control passed to a typed #[dispatch(mutate)] handler.
StructuralVarRemap
Identity substitutions for a custom StructuralMutator remapping policy.

Traits§

IntoMapper
Conversion into the mapper consumed by structural_map.
IntoMutator
Conversion into the mutator argument accepted by structural_mutate.
MapChainLink
One typed callback in a structural-map tuple.
MapDispatch
Ordered typed replacement dispatch for structural_map.
MutateChainLink
One typed callback in a callback-driven structural mutator.
MutateDispatch
Ordered typed callback dispatch for structural_mutate.
StructuralMutator
A low-level mutator that controls its own recursion.

Functions§

structural_map
Transform a structured value graph with ordered replacement callbacks.
structural_mutate
Mutate a structured value with a mutator or typed callback chain.

Type Aliases§

CallbackMutator
Recursive mutation operations passed to closure callback chains.