temp 1.0.0

A procedural macro to manage temporary variables
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 2.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 243.51 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • gorentbarak

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.