var 0.0.1

A macro that allows declaring and initialising multiple mutable variables in a single statement.
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 1 items with examples
  • Size
  • Source code size: 15.63 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.11 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Documentation
  • huonw/var
    3 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • huonw

var!

Build Status

A Rust macro for declaring and initialising multiple mutable variables in a single statement.

#[macro_use] extern crate var;

var! {
    a = 1,
    b: &str = "foo",
    c = 3.0,
}

a += 1;
b = "bar";
c *= 7.0;

Documentation, crates.io