pub struct StructuralMutateEngine<Base = StructuralMutatorObj> { /* private fields */ }Expand description
Scoped Rust mutator runtime with a statically selected native base.
Enter through StructuralMutateEngine::mutate_root. The engine owns the complete base,
dispatcher reborrow handle and identity remaps. The dispatcher stays in the
outer call; callbacks receive only a scoped StructuralMutatorView.
Implementations§
Source§impl<Base: StructuralMutatorBase> StructuralMutateEngine<Base>
impl<Base: StructuralMutatorBase> StructuralMutateEngine<Base>
Sourcepub fn mutate_root<R, H, M, D, O>(root: R, dispatcher: H) -> Result<Any>where
R: Into<Any>,
O: BorrowMut<D>,
for<'v, 'c, 'r> H: IntoDispatcher<(MutationView<'v>, &'c mut StructuralMutatorView<'r, D, Base>), Option<Result<UnchangedOr<Any>>>, M, Target = D, Output = O>,
for<'s, 'v, 'c, 'r> &'s mut D: Dispatcher<(MutationView<'v>, &'c mut StructuralMutatorView<'r, D, Base>), Option<Result<UnchangedOr<Any>>>>,
pub fn mutate_root<R, H, M, D, O>(root: R, dispatcher: H) -> Result<Any>where
R: Into<Any>,
O: BorrowMut<D>,
for<'v, 'c, 'r> H: IntoDispatcher<(MutationView<'v>, &'c mut StructuralMutatorView<'r, D, Base>), Option<Result<UnchangedOr<Any>>>, M, Target = D, Output = O>,
for<'s, 'v, 'c, 'r> &'s mut D: Dispatcher<(MutationView<'v>, &'c mut StructuralMutatorView<'r, D, Base>), Option<Result<UnchangedOr<Any>>>>,
Mutate root with dispatcher on the native base Base. See also structural_mutate.
Auto Trait Implementations§
impl<Base = StructuralMutatorObj> !Freeze for StructuralMutateEngine<Base>
impl<Base = StructuralMutatorObj> !RefUnwindSafe for StructuralMutateEngine<Base>
impl<Base = StructuralMutatorObj> !Send for StructuralMutateEngine<Base>
impl<Base = StructuralMutatorObj> !Sync for StructuralMutateEngine<Base>
impl<Base> Unpin for StructuralMutateEngine<Base>where
Base: Unpin,
impl<Base> UnsafeUnpin for StructuralMutateEngine<Base>where
Base: UnsafeUnpin,
impl<Base> UnwindSafe for StructuralMutateEngine<Base>where
Base: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more