mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-13 00:40:22 +00:00
rename MutQueryStorageOps
to InputQueryStorageOps
This commit is contained in:
parent
bf44ef35d4
commit
6a0ed30d73
2 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ use crate::runtime::Revision;
|
|||
use crate::runtime::StampedValue;
|
||||
use crate::CycleDetected;
|
||||
use crate::Database;
|
||||
use crate::MutQueryStorageOps;
|
||||
use crate::InputQueryStorageOps;
|
||||
use crate::Query;
|
||||
use crate::QueryDescriptor;
|
||||
use crate::QueryStorageOps;
|
||||
|
@ -117,7 +117,7 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl<DB, Q> MutQueryStorageOps<DB, Q> for InputStorage<DB, Q>
|
||||
impl<DB, Q> InputQueryStorageOps<DB, Q> for InputStorage<DB, Q>
|
||||
where
|
||||
Q: Query<DB>,
|
||||
DB: Database,
|
||||
|
|
|
@ -124,7 +124,7 @@ where
|
|||
/// An optional trait that is implemented for "user mutable" storage:
|
||||
/// that is, storage whose value is not derived from other storage but
|
||||
/// is set independently.
|
||||
pub trait MutQueryStorageOps<DB, Q>: Default
|
||||
pub trait InputQueryStorageOps<DB, Q>: Default
|
||||
where
|
||||
DB: Database,
|
||||
Q: Query<DB>,
|
||||
|
@ -174,7 +174,7 @@ where
|
|||
/// an active query computation.
|
||||
pub fn set(&self, key: Q::Key, value: Q::Value)
|
||||
where
|
||||
Q::Storage: MutQueryStorageOps<DB, Q>,
|
||||
Q::Storage: InputQueryStorageOps<DB, Q>,
|
||||
{
|
||||
self.storage.set(self.db, &key, value);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue