pub fn try_local_scope<'env, R, E>(
body: impl for<'scope> FnOnce(&LocalScope<'scope, 'env>) -> Result<R, E>,
) -> Result<R, ScopeRunError<E>>Expand description
Runs borrowed children with an application-specific, caller-owned body error. Body failure cancels and reclaims children before returning; diagnostics never retain or format the application error.