mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-24 20:20:26 +00:00
11 lines
204 B
Rust
11 lines
204 B
Rust
#[salsa::input]
|
|
pub struct MyInput {
|
|
field: u32,
|
|
}
|
|
|
|
fn main() {
|
|
let mut db = salsa::default_database();
|
|
let input = MyInput::new(&mut db, 22);
|
|
input.field(&db);
|
|
input.set_field(22);
|
|
}
|