pub fn with_source_capture<R>(f: impl FnOnce() -> R) -> RExpand description
Run f with original-source capture on for this thread. Outside such a
scope every source field stays None and extraction does no source
traversal: the capture costs 3-24% of analytic export time, so it is
paid only by a consumer that asks for it. The previous state is restored
on every exit, including a panic. On wasm32 capture is compiled out unless
the wasm_source_capture feature (the opt-in retained browser engine) is
on: otherwise f runs and every source stays None.