Function try_get_cached

Source
pub fn try_get_cached<Tcx, C>(
    tcx: Tcx,
    cache: &C,
    key: &C::Key,
) -> Option<C::Value>
where C: QueryCache, Tcx: DepContext,
Expand description

Checks whether there is already a value for this key in the in-memory query cache, returning that value if present.

(Also performs some associated bookkeeping, if a value was found.)