| Crates.io | temp |
| lib.rs | temp |
| version | 1.0.0 |
| created_at | 2021-11-19 23:28:03.782566+00 |
| updated_at | 2023-12-01 20:58:49.940237+00 |
| description | A procedural macro to manage temporary variables |
| homepage | |
| repository | |
| max_upload_size | |
| id | 484670 |
| size | 2,890 |
A single procedural macro to make temporary variables easier. Code example:
use templest::temp;
fn main() {
let temp!() = 10;
println!("{:?}", temp!(-));
}
This code example prints 10 to the console.
If we add a new temporary variable, after we define the first one as 10, and define that as 20, than 20 will be printed.
use templest::temp;
fn main() {
let temp!() = 10;
let temp!() = 20;
println!("{:?}", temp!(-));
}
This new code example will print 20 to the console.