Skip to main content

Module query

Module query 

Source
Expand description

Derived query trait and TypeId-based query registry.

All analysis queries implement DerivedQuery. The registry maps each query type’s TypeId to a shard assignment in the [ShardedCache]. Registration is explicit — no proc macros.

Structs§

QueryKey
A type-erased query cache key combining the query type’s stable QUERY_TYPE_ID discriminator and the hash of the postcard encoding of the input key.
QueryRegistry
Registry mapping query types to shard assignments.

Traits§

DerivedQuery
A derived query whose result is memoized in the [ShardedCache].