mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-23 13:10:19 +00:00
Merge pull request #175 from matklad/doc-requires
Actually document salsa::requires
This commit is contained in:
commit
4084c2c6c2
1 changed files with 8 additions and 0 deletions
|
@ -46,6 +46,14 @@ mod query_group;
|
||||||
///
|
///
|
||||||
/// Here is a list of legal `salsa::XXX` attributes:
|
/// Here is a list of legal `salsa::XXX` attributes:
|
||||||
///
|
///
|
||||||
|
/// - Query group attributes: apply to the trait itself
|
||||||
|
/// - `#[salsa::requires(OtherGroup)]` -- makes `OtherGroup` a
|
||||||
|
/// private dependency of the current group. That means that
|
||||||
|
/// functions that implement queries have `: OutherGropup` bound
|
||||||
|
/// on the database argument. This is similar to just making `OtherGroup`
|
||||||
|
/// a super trait, with a difference that users of the query group don't
|
||||||
|
/// get access to `OtherGroup` automatcally, which would be the case with
|
||||||
|
/// a super trait.
|
||||||
/// - Storage attributes: control how the query data is stored and set. These
|
/// - Storage attributes: control how the query data is stored and set. These
|
||||||
/// are described in detail in the section below.
|
/// are described in detail in the section below.
|
||||||
/// - `#[salsa::input]`
|
/// - `#[salsa::input]`
|
||||||
|
|
Loading…
Reference in a new issue