Expand description
The implementation of the query system itself. This defines the macros that generate the actual methods on tcx which find and execute the provider, manage the caches, and so forth.
StructsΒ§
- Cycle
Error - JobOwner π
- A type representing the responsibility to execute the job in the
jobfield. This will poison the relevant query if dropped. - Query
State - For a particular query, keeps track of βactiveβ keys, i.e. keys whose evaluation has started but has not yet finished successfully.
EnumsΒ§
- Active
KeyStatus π - For a particular query and key, tracks the status of a query evaluation that has started, but has not yet finished successfully.
- Query
Mode
FunctionsΒ§
- cycle_
error π - ensure_
must_ πrun - Ensure that either this query has all green inputs or been executed.
Executing
query::ensure(D)is considered a read of the dep-nodeD. Returns true if the query should still run. - equivalent_
key π - execute_
job π - execute_
job_ πincr - execute_
job_ πnon_ incr - force_
query - get_
query_ incr - get_
query_ non_ incr - handle_
cycle_ πerror - incremental_
verify_ πich - incremental_
verify_ πich_ failed - incremental_
verify_ πich_ not_ green - mk_
cycle π - try_
execute_ πquery - try_
get_ cached - Checks whether there is already a value for this key in the in-memory query cache, returning that value if present.
- try_
load_ πfrom_ disk_ and_ cache_ in_ memory - wait_
for_ πquery