improve comment

This commit is contained in:
Niko Matsakis 2018-09-29 05:48:28 -04:00
parent 4054817a96
commit 4b4ab53cdb

View file

@ -26,6 +26,9 @@ pub mod transparent;
pub use self::runtime::Runtime; 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 { pub trait QueryContext: Sized + HasQueryContextDescriptor {
/// Gives access to the underlying salsa runtime. /// Gives access to the underlying salsa runtime.
fn salsa_runtime(&self) -> &runtime::Runtime<Self>; fn salsa_runtime(&self) -> &runtime::Runtime<Self>;