pub(crate) trait QueryConfigRestored<'tcx> {
type RestoredValue;
type Config: QueryConfig<QueryCtxt<'tcx>>;
const NAME: &'static &'static str;
// Required methods
fn config(tcx: TyCtxt<'tcx>) -> Self::Config;
fn restore(
value: <Self::Config as QueryConfig<QueryCtxt<'tcx>>>::Value
) -> Self::RestoredValue;
}
Expand description
This is implemented per query. It allows restoring query values from their erased state and constructing a QueryConfig.
Required Associated Types§
type RestoredValue
type Config: QueryConfig<QueryCtxt<'tcx>>
Required Associated Constants§
Required Methods§
fn config(tcx: TyCtxt<'tcx>) -> Self::Config
fn restore( value: <Self::Config as QueryConfig<QueryCtxt<'tcx>>>::Value ) -> Self::RestoredValue
Object Safety§
This trait is not object safe.