Macro sp_core::map

source ยท
macro_rules! map {
    ($( $name:expr => $value:expr ),* $(,)? ) => { ... };
}
Expand description

Initialize a key-value collection from array.

Creates a vector of given pairs and calls collect on the iterator from it. Can be used to create a HashMap.