pub fn trace<F, R>(f: F) -> (ExprGraph, R)where
F: FnOnce() -> R,Expand description
Run a closure with a fresh graph, returning the graph and result.
Installs a new empty graph, runs f (which builds the expression via
ExprId arithmetic / Scalar calls), then extracts the graph.