wit

Macro wit 

Source
macro_rules! wit {
    ($weight: expr, $value: expr) => { ... };
}
Expand description

Construct a WeightedItem from a (weight, value) pair.

ยงUsage

let item = wit!(2.0, "sup");
assert_eq!(item, WeightedItem::new(2.0, "sup"));