mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-14 09:01:11 +00:00
33 lines
No EOL
626 B
Rust
33 lines
No EOL
626 B
Rust
#[salsa::jar(db = Db, return_ref)]
|
|
struct JarWithRetRef(MyInput);
|
|
|
|
#[salsa::jar(db = Db, specify)]
|
|
struct JarWithDb(MyInput);
|
|
|
|
|
|
#[salsa::jar(db = Db, no_eq)]
|
|
struct JarWithNoEq(MyInput);
|
|
|
|
#[salsa::jar(db = Db, jar = Jar)]
|
|
struct JarWithJar(MyInput);
|
|
|
|
#[salsa::jar(db = Db, data = Data)]
|
|
struct JarWithData(MyInput);
|
|
|
|
#[salsa::jar(db = Db, recovery_fn = recover)]
|
|
struct JarWithRecover(MyInput);
|
|
|
|
#[salsa::jar(db = Db, lru = 32)]
|
|
struct JarWithLru(MyInput);
|
|
|
|
#[salsa::jar(db = Db, constructor = JarConstructor)]
|
|
struct JarWithConstructor(MyInput);
|
|
|
|
#[salsa::input(jar = Jar1)]
|
|
struct MyInput {
|
|
field: u32,
|
|
}
|
|
|
|
fn main() {
|
|
|
|
} |