var

Macro var 

Source
macro_rules! var {
    ($lb:tt <= $name:tt <= $ub:tt -> $obj:tt as $vt:path) => { ... };
    ($lb:tt <= $name:tt <= $ub:tt -> $obj:tt) => { ... };
    ($lb:tt <= $name:tt -> $obj:tt) => { ... };
    ($name:tt <= $ub:tt -> $obj:tt) => { ... };
    ($name:tt -> $obj:tt) => { ... };
    ($lb:tt <= $name:tt -> $obj:tt as $vt:path) => { ... };
    ($name:tt <= $ub:tt -> $obj:tt as $vt:path) => { ... };
    ($name:tt -> $obj:tt as Binary) => { ... };
    ($name:tt -> $obj:tt as $vt:path) => { ... };
}
Expand description

Expressive creation of variables.

The general syntax is:

var!(lower <= "name" <= upper -> objective as type)

See Variable for examples.