Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huonw/var
A Rust macro for declaring and initialising multiple mutable variables in a single statement.
https://github.com/huonw/var
Last synced: about 1 month ago
JSON representation
A Rust macro for declaring and initialising multiple mutable variables in a single statement.
- Host: GitHub
- URL: https://github.com/huonw/var
- Owner: huonw
- License: other
- Created: 2015-02-17T01:59:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-16T10:36:11.000Z (over 9 years ago)
- Last Synced: 2024-09-17T23:49:45.324Z (about 2 months ago)
- Language: Rust
- Homepage: http://huonw.github.io/var/var
- Size: 730 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# `var!`
[![Build Status](https://travis-ci.org/huonw/var.png)](https://travis-ci.org/huonw/var) [![Coverage Status](https://coveralls.io/repos/huonw/var/badge.svg?branch=master)](https://coveralls.io/r/huonw/var?branch=master)
A Rust macro for declaring and initialising multiple mutable variables
in a single statement.```rust
#[macro_use] extern crate var;var! {
a = 1,
b: &str = "foo",
c = 3.0,
}a += 1;
b = "bar";
c *= 7.0;
```[Documentation](http://huonw.github.io/var/var), [crates.io](https://crates.io/crates/var)