Crates.io | var |
lib.rs | var |
version | 0.0.1 |
source | src |
created_at | 2015-02-17 01:58:08.143168 |
updated_at | 2015-12-11 23:57:02.323352 |
description | A macro that allows declaring and initialising multiple mutable variables in a single statement. |
homepage | https://github.com/huonw/var |
repository | https://github.com/huonw/var |
max_upload_size | |
id | 1413 |
size | 15,489 |
var!
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;