templest

Crates.iotemplest
lib.rstemplest
version1.0.0
sourcesrc
created_at2023-11-30 19:01:55.202348
updated_at2023-11-30 19:26:56.826222
descriptionA procedural macro to manage temporary variables
homepage
repository
max_upload_size
id1054379
size2,890
Goren Barak (gorentbarak)

documentation

README

Templest

A single procedural macro to make temporary variables easier. Code example:

use temp::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 temp::temp;

fn main() {
    let temp!() = 10;
    let temp!() = 20;
    
    println!("{:?}", temp!(-));
}

This new code example will print 20 to the console.

Commit count: 0

cargo fmt