Skip to main content

IntoMutator

Trait IntoMutator 

Source
pub trait IntoMutator<Marker> { }
Expand description

Conversion into the mutator argument accepted by structural_mutate.

Accepts a mutable low-level StructuralMutator, a generated MutateDispatch, or a first-match callback chain. Generated dispatch objects keep mutable pass state directly on themselves; MutateCallbacks remains available for closure callback chains with separate state.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<U: StructuralMutator> IntoMutator<U> for &mut U

Implementors§