2024-07-19 12:05:39 +00:00
|
|
|
#[salsa::tracked(return_ref)]
|
2022-09-07 19:09:33 +00:00
|
|
|
struct TrackedWithRetRef {
|
2024-07-19 12:05:39 +00:00
|
|
|
field: u32,
|
2022-09-07 19:09:33 +00:00
|
|
|
}
|
|
|
|
|
2024-07-19 12:05:39 +00:00
|
|
|
#[salsa::tracked(specify)]
|
2022-09-07 19:09:33 +00:00
|
|
|
struct TrackedSructWithSpecify {
|
2024-07-19 12:05:39 +00:00
|
|
|
field: u32,
|
2022-09-07 19:09:33 +00:00
|
|
|
}
|
|
|
|
|
2024-07-19 12:05:39 +00:00
|
|
|
#[salsa::tracked(no_eq)]
|
2022-09-07 19:09:33 +00:00
|
|
|
struct TrackedStructWithNoEq {
|
2024-07-19 12:05:39 +00:00
|
|
|
field: u32,
|
2022-09-07 19:09:33 +00:00
|
|
|
}
|
|
|
|
|
2024-07-19 12:05:39 +00:00
|
|
|
#[salsa::tracked(db = Db)]
|
2022-09-07 19:09:33 +00:00
|
|
|
struct TrackedStructWithDb {
|
2024-07-19 12:05:39 +00:00
|
|
|
field: u32,
|
2022-09-07 19:09:33 +00:00
|
|
|
}
|
|
|
|
|
2024-07-19 12:05:39 +00:00
|
|
|
#[salsa::tracked(recover_fn = recover)]
|
2022-09-07 19:09:33 +00:00
|
|
|
struct TrackedStructWithRecover {
|
2024-07-19 12:05:39 +00:00
|
|
|
field: u32,
|
2022-09-07 19:09:33 +00:00
|
|
|
}
|
|
|
|
|
2024-07-19 12:05:39 +00:00
|
|
|
#[salsa::tracked(lru = 12)]
|
2022-09-07 19:09:33 +00:00
|
|
|
struct TrackedStructWithLru {
|
2024-07-19 12:05:39 +00:00
|
|
|
field: u32,
|
2022-09-07 19:09:33 +00:00
|
|
|
}
|
2024-07-19 12:05:39 +00:00
|
|
|
|
|
|
|
fn main() {}
|