Skip to main content

Module plumbing

Module plumbing 

Source

ModulesΒ§

sealed πŸ”’

MacrosΒ§

define_callbacks πŸ”’
define_feedable πŸ”’
ensure_ok_result πŸ”’
local_key_if_separate_extern πŸ”’
If separate_provide_extern, then the key can be projected to its local key via <$K as AsLocalKey>::LocalKey.
query_ensure_select πŸ”’
Calls either query_ensure or query_ensure_error_guaranteed, depending on whether the list of modifiers contains return_result_from_ensure_ok.
query_helper_param_ty πŸ”’
query_if_arena πŸ”’
separate_provide_extern_decl πŸ”’
separate_provide_extern_default πŸ”’

StructsΒ§

CycleError
CyclePlaceholder
QueryState
For a particular query, keeps track of β€œactive” keys, i.e. keys whose evaluation has started but has not yet finished successfully.
QuerySystem
QuerySystemFns
QueryVTable
Stores function pointers and other metadata for a particular query.
TyCtxtAt
TyCtxtEnsureDone
TyCtxtEnsureOk

EnumsΒ§

ActiveKeyStatus
For a particular query and key, tracks the status of a query evaluation that has started, but has not yet finished successfully.
CycleErrorHandling
How a particular query deals with query cycle errors.
QueryMode

TraitsΒ§

IntoQueryParam
An analogue of the Into trait that’s intended only for query parameters.

FunctionsΒ§

default_extern_query πŸ”’
default_query πŸ”’

Type AliasesΒ§

HashResult
IsLoadableFromDiskFn
TryLoadFromDiskFn
WillCacheOnDiskForKeyFn