pub fn with_scoped<T>(report: &Report, f: impl FnOnce() -> T) -> T
Sets this reporter as the scoped reporter for the duration of a closure.