mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-28 17:42:00 +00:00
improve comment
This commit is contained in:
parent
4054817a96
commit
4b4ab53cdb
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,9 @@ pub mod transparent;
|
|||
|
||||
pub use self::runtime::Runtime;
|
||||
|
||||
/// The base trait which your "query context" must implement. Gives
|
||||
/// access to the salsa runtime, which you must embed into your query
|
||||
/// context (along with whatever other state you may require).
|
||||
pub trait QueryContext: Sized + HasQueryContextDescriptor {
|
||||
/// Gives access to the underlying salsa runtime.
|
||||
fn salsa_runtime(&self) -> &runtime::Runtime<Self>;
|
||||
|
|
Loading…
Reference in a new issue