Struct rustc_query_system::query::QueryVTable
source · pub struct QueryVTable<CTX: QueryContext, K, V> {
pub anon: bool,
pub dep_kind: CTX::DepKind,
pub eval_always: bool,
pub depth_limit: bool,
pub compute: fn(_: CTX::DepContext, _: K) -> V,
pub hash_result: Option<fn(_: &mut StableHashingContext<'_>, _: &V) -> Fingerprint>,
pub handle_cycle_error: HandleCycleError,
pub try_load_from_disk: Option<fn(_: CTX, _: SerializedDepNodeIndex) -> Option<V>>,
}
Fields
anon: bool
dep_kind: CTX::DepKind
eval_always: bool
depth_limit: bool
compute: fn(_: CTX::DepContext, _: K) -> V
hash_result: Option<fn(_: &mut StableHashingContext<'_>, _: &V) -> Fingerprint>
handle_cycle_error: HandleCycleError
try_load_from_disk: Option<fn(_: CTX, _: SerializedDepNodeIndex) -> Option<V>>
Implementations
sourceimpl<CTX: QueryContext, K, V> QueryVTable<CTX, K, V>
impl<CTX: QueryContext, K, V> QueryVTable<CTX, K, V>
pub(crate) fn to_dep_node(
&self,
tcx: CTX::DepContext,
key: &K
) -> DepNode<CTX::DepKind>where
K: DepNodeParams<CTX::DepContext>,
pub(crate) fn compute(&self, tcx: CTX::DepContext, key: K) -> V
Trait Implementations
sourceimpl<CTX: Clone + QueryContext, K: Clone, V: Clone> Clone for QueryVTable<CTX, K, V>where
CTX::DepKind: Clone,
CTX::DepContext: Clone,
impl<CTX: Clone + QueryContext, K: Clone, V: Clone> Clone for QueryVTable<CTX, K, V>where
CTX::DepKind: Clone,
CTX::DepContext: Clone,
sourcefn clone(&self) -> QueryVTable<CTX, K, V>
fn clone(&self) -> QueryVTable<CTX, K, V>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<CTX: Copy + QueryContext, K: Copy, V: Copy> Copy for QueryVTable<CTX, K, V>where
CTX::DepKind: Copy,
CTX::DepContext: Copy,
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.