pub fn with<F, R>(f: F) -> Rwhere F: for<'tcx> FnOnce(TyCtxt<'tcx>) -> R,
Allows access to the TyCtxt in the current ImplicitCtxt. Panics if there is no ImplicitCtxt available.
TyCtxt
ImplicitCtxt