macro_rules! static_dict {
{$($k:expr => $v:expr),+ $(,)?} => { ... };
}
Expand description
A macro for creating a new StaticDict
with predefined key-value pairs.
The macro accepts a list of static Key => Value
pairs, separated by commas.
ยงExamples:
Create a StaticDict
.
use libspa::{utils::dict::StaticDict, static_dict};
static PROPS: StaticDict = static_dict!{
"Key1" => "Value1",
"Key2" => "Value2",
};