mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-07-24 13:44:39 +00:00
move incremental, storage_varieties to tests
They aren't meant to be things to model oneself after.
This commit is contained in:
parent
e134ffcdf4
commit
2d2bdfe7f1
10 changed files with 0 additions and 0 deletions
|
@ -1,36 +0,0 @@
|
|||
use crate::counter::Counter;
|
||||
use crate::log::Log;
|
||||
use crate::queries;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct QueryContextImpl {
|
||||
runtime: salsa::runtime::Runtime<QueryContextImpl>,
|
||||
clock: Counter,
|
||||
log: Log,
|
||||
}
|
||||
|
||||
salsa::query_context_storage! {
|
||||
pub struct QueryContextImplStorage for QueryContextImpl {
|
||||
impl queries::QueryContext {
|
||||
fn memoized2() for queries::Memoized2;
|
||||
fn memoized1() for queries::Memoized1;
|
||||
fn volatile() for queries::Volatile;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl queries::CounterContext for QueryContextImpl {
|
||||
fn clock(&self) -> &Counter {
|
||||
&self.clock
|
||||
}
|
||||
|
||||
fn log(&self) -> &Log {
|
||||
&self.log
|
||||
}
|
||||
}
|
||||
|
||||
impl salsa::QueryContext for QueryContextImpl {
|
||||
fn salsa_runtime(&self) -> &salsa::runtime::Runtime<QueryContextImpl> {
|
||||
&self.runtime
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue