Struct rustc_query_system::query::config::QueryVtable [−][src]
pub(crate) struct QueryVtable<CTX: QueryContext, K, V> { pub anon: bool, pub dep_kind: CTX::DepKind, pub eval_always: bool, pub hash_result: fn(_: &mut CTX::StableHashingContext, _: &V) -> Option<Fingerprint>, pub handle_cycle_error: fn(_: CTX, _: DiagnosticBuilder<'_>) -> V, pub cache_on_disk: fn(_: CTX, _: &K, _: Option<&V>) -> bool, pub try_load_from_disk: fn(_: CTX, _: SerializedDepNodeIndex) -> Option<V>, }
Fields
anon: booldep_kind: CTX::DepKindeval_always: boolhash_result: fn(_: &mut CTX::StableHashingContext, _: &V) -> Option<Fingerprint>handle_cycle_error: fn(_: CTX, _: DiagnosticBuilder<'_>) -> Vcache_on_disk: fn(_: CTX, _: &K, _: Option<&V>) -> booltry_load_from_disk: fn(_: CTX, _: SerializedDepNodeIndex) -> Option<V>Implementations
pub(crate) fn to_dep_node(
&self,
tcx: CTX::DepContext,
key: &K
) -> DepNode<CTX::DepKind> where
K: DepNodeParams<CTX::DepContext>, pub(crate) fn hash_result(
&self,
hcx: &mut CTX::StableHashingContext,
value: &V
) -> Option<Fingerprint>Auto Trait Implementations
impl<CTX, K, V> RefUnwindSafe for QueryVtable<CTX, K, V> where
<CTX as HasDepContext>::DepKind: RefUnwindSafe, impl<CTX, K, V> Send for QueryVtable<CTX, K, V>impl<CTX, K, V> Sync for QueryVtable<CTX, K, V> where
<CTX as HasDepContext>::DepKind: Sync, impl<CTX, K, V> Unpin for QueryVtable<CTX, K, V> where
<CTX as HasDepContext>::DepKind: Unpin, impl<CTX, K, V> UnwindSafe for QueryVtable<CTX, K, V> where
<CTX as HasDepContext>::DepKind: UnwindSafe, Blanket Implementations
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.