tlopex opened a new pull request, #798: URL: https://github.com/apache/tvm-ffi/pull/798
This pr adds `MutateValue<T>` to carry engine-established `InplaceMode` through mutation callbacks into default recursion without acquiring an owning reference. Default descent consumes the handle, preventing node borrows from remaining live across mutation. Retained owning aliases still force copying. And also supports consuming callbacks in `#[dispatch(mutate)]` and closure chains. Generated handlers can receive an optional trailing `InplaceMode`; callback contexts expose the mode and provide consuming default-descent helpers, including an `UnchangedOr`-preserving variant. Explicit `Disallow` prevents reuse, while `Allow` cannot upgrade a handle issued without permission. Existing borrowed callbacks retain their copy-only default recursion. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
