Macro canrun::lmap

source ·
macro_rules! lmap {
    ($($key:expr => $value:expr),*) => { ... };
}
Expand description

Create an LMap with automatic key/value Into<Value<T>> wrapping.

The primary benefit is that it allows freely mixing resolved values and LVars.

Example:

use canrun::LVar;
use canrun::lmap::{lmap, LMap};

let x = LVar::new();
let map = lmap!{x => 1, 2 => 3};