pub fn with_stack_trace_snapshot<R>(
operation: impl FnOnce() -> R,
) -> (R, Vec<TraceFrame>)Expand description
Runs an evaluation with trace collection and returns the frames before the boundary resets its thread-local state. The textual error contract remains unchanged; embedding hosts can use this companion to build structured diagnostics without parsing rendered stack lines.