mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-24 20:20:26 +00:00
37 lines
548 B
Rust
37 lines
548 B
Rust
#[salsa::interned(return_ref)]
|
|
struct InternedWithRetRef {
|
|
field: u32,
|
|
}
|
|
|
|
#[salsa::interned(specify)]
|
|
struct InternedWithSpecify {
|
|
field: u32,
|
|
}
|
|
|
|
#[salsa::interned(no_eq)]
|
|
struct InternedWithNoEq {
|
|
field: u32,
|
|
}
|
|
|
|
#[salsa::interned(db = Db)]
|
|
struct InternedWithDb {
|
|
field: u32,
|
|
}
|
|
|
|
#[salsa::interned(recover_fn = recover)]
|
|
struct InternedWithRecover {
|
|
field: u32,
|
|
}
|
|
|
|
#[salsa::interned(lru = 12)]
|
|
struct InternedWithLru {
|
|
field: u32,
|
|
}
|
|
|
|
#[salsa::interned]
|
|
struct InternedWithIdField {
|
|
#[id]
|
|
field: u32,
|
|
}
|
|
|
|
fn main() {}
|