Function rustc_middle::ty::tls::with_context_opt
source · [−]pub fn with_context_opt<F, R>(f: F) -> Rwhere
F: for<'a, 'tcx> FnOnce(Option<&ImplicitCtxt<'a, 'tcx>>) -> R,
Expand description
Allows access to the current ImplicitCtxt
in a closure if one is available.