Macro canrun::ltup

source ·
macro_rules! ltup {
    ($($item:expr),* $(,)?) => { ... };
}
Expand description

Create a tuple of logical values with automatic Into<Value<T>> wrapping.

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

Example:

use canrun::{LVar, ltup, Value};
let x = LVar::new();
let tuple: (Value<i32>, Value<i32>, Value<&'static str>) = ltup!(x, 1, "two");