pub fn with_current_file<F, R>(filename: Option<String>, f: F) -> Rwhere
F: FnOnce() -> R,Expand description
Scope guard for setting the current filename — useful for native callers that want filename context in error messages without managing the thread-local manually.