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.

Structs§

MutationView
A borrowed value that a structural mutation may rewrite in place.
StructuralMutateEngine
Scoped Rust mutator runtime with a statically selected native base.
StructuralMutatorObj
The native mutator state, laid out as the prefix of the C++ StructuralMutatorObj, with no Rust traversal state.
StructuralMutatorView
The running structural mutation, passed to each handler.

Enums§

InplaceMode
Whether a MutationView may reuse its value’s storage in place.

Traits§

StructuralMutatorBase
Native state and default mutation for StructuralMutateEngine. The engine owns allocation, scoped dispatch, identity remaps and results.

Functions§

structural_mutate
Mutate a structured value with an owned or borrowed Dispatcher.