Trait salsa::Query

source ·
pub trait Query<DB: Database>: Debug + Default + Sized + 'static {
    type Key: Clone + Debug + Hash + Eq;
    type Value: Clone + Debug;
    type Storage: QueryStorageOps<DB, Self> + Send + Sync;
}
Expand description

Trait implements by all of the “special types” associated with each of your queries.

Required Associated Types

Type that you you give as a parameter – for queries with zero or more than one input, this will be a tuple.

What value does the query return?

Internal struct storing the values for the query.

Implementors