SelectionCache in rustc_middle::traits::select - Rust
Description: API documentation for the Rust `SelectionCache` type in crate `rustc_middle`.

Skip to main content

## SelectionCache

# Type Alias SelectionCache

Source

    pub type SelectionCache<'tcx, ENV> = WithDepNodeCache<(ENV, TraitPredicate<'tcx>), SelectionResult<'tcx, SelectionCandidate<'tcx>>>;

## Aliased Type§

    pub struct SelectionCache<'tcx, ENV> {
        hashmap: Lock<HashMap<(ENV, TraitPredicate<TyCtxt<'tcx>>), WithDepNode<Result<Option<SelectionCandidate<'tcx>>, SelectionError<'tcx>>>, FxBuildHasher>>,
    }

## Fields§

§`hashmap: Lock<HashMap<(ENV, TraitPredicate<TyCtxt<'tcx>>), WithDepNode<Result<Option<SelectionCandidate<'tcx>>, SelectionError<'tcx>>>, FxBuildHasher>>`

## Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain `repr(...)` attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 40 bytes