2024-07-19 11:08:11 +00:00
|
|
|
#[salsa::accumulator(return_ref)]
|
|
|
|
struct AccWithRetRef(u32);
|
2022-09-07 19:09:33 +00:00
|
|
|
|
2024-07-19 11:08:11 +00:00
|
|
|
#[salsa::accumulator(specify)]
|
|
|
|
struct AccWithSpecify(u32);
|
2022-09-07 19:09:33 +00:00
|
|
|
|
2024-07-19 11:08:11 +00:00
|
|
|
#[salsa::accumulator(no_eq)]
|
|
|
|
struct AccWithNoEq(u32);
|
2022-09-07 19:09:33 +00:00
|
|
|
|
2024-07-19 11:08:11 +00:00
|
|
|
#[salsa::accumulator(data = MyAcc)]
|
|
|
|
struct AccWithData(u32);
|
2022-09-07 19:09:33 +00:00
|
|
|
|
2024-07-19 11:08:11 +00:00
|
|
|
#[salsa::accumulator(db = Db)]
|
|
|
|
struct AcWithcDb(u32);
|
2022-09-07 19:09:33 +00:00
|
|
|
|
2024-07-19 11:08:11 +00:00
|
|
|
#[salsa::accumulator(recover_fn = recover)]
|
|
|
|
struct AccWithRecover(u32);
|
2022-09-07 19:09:33 +00:00
|
|
|
|
2024-07-19 11:08:11 +00:00
|
|
|
#[salsa::accumulator(lru = 12)]
|
|
|
|
struct AccWithLru(u32);
|
2022-09-07 19:09:33 +00:00
|
|
|
|
2024-07-19 11:08:11 +00:00
|
|
|
#[salsa::accumulator(constructor = Constructor)]
|
|
|
|
struct AccWithConstructor(u32);
|
2022-09-07 19:09:33 +00:00
|
|
|
|
2024-07-19 11:08:11 +00:00
|
|
|
fn main() {}
|