Struct rustc_query_system::query::config::QueryVTable
source · pub struct QueryVTable<Qcx: QueryContext, K, V> {
pub anon: bool,
pub dep_kind: Qcx::DepKind,
pub eval_always: bool,
pub depth_limit: bool,
pub feedable: bool,
pub compute: fn(_: Qcx::DepContext, _: K) -> V,
pub hash_result: Option<fn(_: &mut StableHashingContext<'_>, _: &V) -> Fingerprint>,
pub handle_cycle_error: HandleCycleError,
pub try_load_from_disk: Option<fn(_: Qcx, _: SerializedDepNodeIndex) -> Option<V>>,
}
Fields§
§anon: bool
§dep_kind: Qcx::DepKind
§eval_always: bool
§depth_limit: bool
§feedable: bool
§compute: fn(_: Qcx::DepContext, _: K) -> V
§hash_result: Option<fn(_: &mut StableHashingContext<'_>, _: &V) -> Fingerprint>
§handle_cycle_error: HandleCycleError
§try_load_from_disk: Option<fn(_: Qcx, _: SerializedDepNodeIndex) -> Option<V>>
Implementations§
source§impl<Qcx: QueryContext, K, V> QueryVTable<Qcx, K, V>
impl<Qcx: QueryContext, K, V> QueryVTable<Qcx, K, V>
pub(crate) fn to_dep_node(
&self,
tcx: Qcx::DepContext,
key: &K
) -> DepNode<Qcx::DepKind>where
K: DepNodeParams<Qcx::DepContext>,
pub(crate) fn compute(&self, tcx: Qcx::DepContext, key: K) -> V
Trait Implementations§
source§impl<Qcx: Clone + QueryContext, K: Clone, V: Clone> Clone for QueryVTable<Qcx, K, V>where
Qcx::DepKind: Clone,
Qcx::DepContext: Clone,
impl<Qcx: Clone + QueryContext, K: Clone, V: Clone> Clone for QueryVTable<Qcx, K, V>where
Qcx::DepKind: Clone,
Qcx::DepContext: Clone,
source§fn clone(&self) -> QueryVTable<Qcx, K, V>
fn clone(&self) -> QueryVTable<Qcx, K, V>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<Qcx: Copy + QueryContext, K: Copy, V: Copy> Copy for QueryVTable<Qcx, K, V>where
Qcx::DepKind: Copy,
Qcx::DepContext: Copy,
Auto Trait Implementations§
impl<Qcx, K, V> RefUnwindSafe for QueryVTable<Qcx, K, V>where
<Qcx as HasDepContext>::DepKind: RefUnwindSafe,
impl<Qcx, K, V> Send for QueryVTable<Qcx, K, V>
impl<Qcx, K, V> Sync for QueryVTable<Qcx, K, V>where
<Qcx as HasDepContext>::DepKind: Sync,
impl<Qcx, K, V> Unpin for QueryVTable<Qcx, K, V>where
<Qcx as HasDepContext>::DepKind: Unpin,
impl<Qcx, K, V> UnwindSafe for QueryVTable<Qcx, K, V>where
<Qcx 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.