Skip to main content

option_list

Macro option_list 

Source
macro_rules! option_list {
    ($list:expr) => { ... };
}
Expand description

This macro can be used to create an OptionValue::List from an iterator of items that implement Into OptionValue.

ยงExamples

use protify::*;

let list = option_list!([ 1, 2 ]);
assert!(matches!(list, OptionValue::List(_)));