2024-07-19 11:29:18 +00:00
|
|
|
#[salsa::interned(return_ref)]
|
2022-09-07 19:09:33 +00:00
|
|
|
struct InternedWithRetRef {
|
2024-07-19 11:29:18 +00:00
|
|
|
field: u32,
|
2022-09-07 19:09:33 +00:00
|
|
|
}
|
|
|
|
|
2024-07-19 11:29:18 +00:00
|
|
|
#[salsa::interned(specify)]
|
2022-09-07 19:09:33 +00:00
|
|
|
struct InternedWithSpecify {
|
2024-07-19 11:29:18 +00:00
|
|
|
field: u32,
|
2022-09-07 19:09:33 +00:00
|
|
|
}
|
|
|
|
|
2024-07-19 11:29:18 +00:00
|
|
|
#[salsa::interned(no_eq)]
|
2022-09-07 19:09:33 +00:00
|
|
|
struct InternedWithNoEq {
|
2024-07-19 11:29:18 +00:00
|
|
|
field: u32,
|
2022-09-07 19:09:33 +00:00
|
|
|
}
|
|
|
|
|
2024-07-19 11:29:18 +00:00
|
|
|
#[salsa::interned(db = Db)]
|
2022-09-07 19:09:33 +00:00
|
|
|
struct InternedWithDb {
|
2024-07-19 11:29:18 +00:00
|
|
|
field: u32,
|
2022-09-07 19:09:33 +00:00
|
|
|
}
|
|
|
|
|
2024-07-19 11:29:18 +00:00
|
|
|
#[salsa::interned(recover_fn = recover)]
|
2022-09-07 19:09:33 +00:00
|
|
|
struct InternedWithRecover {
|
2024-07-19 11:29:18 +00:00
|
|
|
field: u32,
|
2022-09-07 19:09:33 +00:00
|
|
|
}
|
|
|
|
|
2024-07-19 11:29:18 +00:00
|
|
|
#[salsa::interned(lru = 12)]
|
2022-09-07 19:09:33 +00:00
|
|
|
struct InternedWithLru {
|
2024-07-19 11:29:18 +00:00
|
|
|
field: u32,
|
2022-09-07 19:09:33 +00:00
|
|
|
}
|
2024-07-19 11:29:18 +00:00
|
|
|
|
|
|
|
#[salsa::interned]
|
|
|
|
struct InternedWithIdField {
|
|
|
|
#[id]
|
|
|
|
field: u32,
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|