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§
- Inplace
Value - 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.
- Mutate
Callbacks - A reusable typed-dispatch or callback mutator with shared user state.
- Mutate
Context - State and recursive operations available to a callback-chain mutation.
- Mutator
- Recursion control passed to a typed
#[dispatch(mutate)]handler. - Structural
VarRemap - Identity substitutions for a custom
StructuralMutatorremapping policy.
Traits§
- Into
Mapper - Conversion into the mapper consumed by
structural_map. - Into
Mutator - Conversion into the mutator argument accepted by
structural_mutate. - MapChain
Link - One typed callback in a structural-map tuple.
- MapDispatch
- Ordered typed replacement dispatch for
structural_map. - Mutate
Chain Link - One typed callback in a callback-driven structural mutator.
- Mutate
Dispatch - Ordered typed callback dispatch for
structural_mutate. - Structural
Mutator - 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§
- Callback
Mutator - Recursive mutation operations passed to closure callback chains.