Easily create temporary variables using a simple procedural macro.
Find a file
2023-12-01 15:59:04 -05:00
src set up cargo 2023-11-30 13:49:47 -05:00
.gitignore set up cargo 2023-11-30 13:49:47 -05:00
Cargo.toml added 1.0 2023-12-01 15:59:04 -05:00
README.md Revert "Fixed README" 2023-12-01 15:57:18 -05:00

Templest

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.