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;pub use super::StructuralView;
Structs§
- Default
MutContext Policy - Default descent through registered hooks or reflected structural fields.
- Inplace
Value - Engine-issued permission to attempt in-place mutation of one value.
- MapWith
Context Policy - A
MapDispatchwith aMutContextPolicy, sharing the dispatcher’s state. - Mutate
Callbacks - A reusable typed-dispatch or callback mutator with shared user state.
- Mutate
Context - State and recursive operations shared by mutation callbacks and context policies.
- Mutate
Value - A callback value carrying the engine’s in-place permission.
- Mutator
- Recursion control passed to a typed
#[dispatch(mutate)]handler. - Structural
VarRemap - Identity substitutions for a custom
StructuralMutatorremapping policy.
Enums§
- Inplace
Mode - Permission to attempt in-place structural mutation along an owned path.
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. - MutContext
Policy - Default-recursion policy for
MutateCallbacks::with_policyandMapWithContextPolicy. - 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.