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 compute: fn(_: CTX::DepContext, _: K) -> V,
    pub hash_result: Option<fn(_: &mut StableHashingContext<'_>, _: &V) -> 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: boolcompute: fn(_: CTX::DepContext, _: K) -> Vhash_result: Option<fn(_: &mut StableHashingContext<'_>, _: &V) -> 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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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.