mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-24 20:20:26 +00:00
25 lines
519 B
Rust
25 lines
519 B
Rust
#[salsa::accumulator(return_ref)]
|
|
struct AccWithRetRef(u32);
|
|
|
|
#[salsa::accumulator(specify)]
|
|
struct AccWithSpecify(u32);
|
|
|
|
#[salsa::accumulator(no_eq)]
|
|
struct AccWithNoEq(u32);
|
|
|
|
#[salsa::accumulator(data = MyAcc)]
|
|
struct AccWithData(u32);
|
|
|
|
#[salsa::accumulator(db = Db)]
|
|
struct AcWithcDb(u32);
|
|
|
|
#[salsa::accumulator(recover_fn = recover)]
|
|
struct AccWithRecover(u32);
|
|
|
|
#[salsa::accumulator(lru = 12)]
|
|
struct AccWithLru(u32);
|
|
|
|
#[salsa::accumulator(constructor = Constructor)]
|
|
struct AccWithConstructor(u32);
|
|
|
|
fn main() {}
|