mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-23 05:07:27 +00:00
31 lines
488 B
Rust
31 lines
488 B
Rust
#[salsa::tracked(return_ref)]
|
|
struct TrackedWithRetRef {
|
|
field: u32,
|
|
}
|
|
|
|
#[salsa::tracked(specify)]
|
|
struct TrackedSructWithSpecify {
|
|
field: u32,
|
|
}
|
|
|
|
#[salsa::tracked(no_eq)]
|
|
struct TrackedStructWithNoEq {
|
|
field: u32,
|
|
}
|
|
|
|
#[salsa::tracked(db = Db)]
|
|
struct TrackedStructWithDb {
|
|
field: u32,
|
|
}
|
|
|
|
#[salsa::tracked(recover_fn = recover)]
|
|
struct TrackedStructWithRecover {
|
|
field: u32,
|
|
}
|
|
|
|
#[salsa::tracked(lru = 12)]
|
|
struct TrackedStructWithLru {
|
|
field: u32,
|
|
}
|
|
|
|
fn main() {}
|