Skip to main content

Module query

Module query 

Source

Re-exports§

pub use self::plumbing::IntoQueryParam;
pub use self::plumbing::TyCtxtAt;
pub use self::plumbing::TyCtxtEnsureDone;
pub use self::plumbing::TyCtxtEnsureOk;
pub use crate::queries::Providers;

Modules§

arena_cached 🔒
erase
To improve compile times and code size for the compiler itself, query values are “erased” in some contexts (e.g. inside in-memory cache types), to reduce the number of generic instantiations created during codegen.
inner 🔒
Helper functions that serve as the immediate implementation of tcx.$query(..) and its variations.
keys 🔒
Defines the set of legal keys that can be used in queries.
on_disk_cache
plumbing
values

Structs§

LocalCrate
Placeholder for CrateNum’s “local” counterpart
QueryState
For a particular query, keeps track of “active” keys, i.e. keys whose evaluation has started but has not yet finished successfully.

Enums§

QueryMode

Traits§

AsLocalKey
Key
The Key trait controls what types can legally be used as the key for a query.

Functions§

describe_as_module