Macro for underscore named argumet syntax, aka Dyon.
This library requires Rust 2018 nightly and only works for functions, not methods.
By naming a function line__color_from_to
, one can call it like this:
ignore
args!(line(color: [1.0; 4], from: [0.0, 0.0], to: [100.0, 100.0]))
```rust
use underscore_args::args;
fn line_colorfromto(color: [f32; 4], _from: [f32; 2], _to: [f32; 2]) {}
args!(line(color: [1.0; 4], from: [0.0, 0.0], to: [100.0, 100.0])); ```