Skip to main content

tags

Macro tags 

Source
macro_rules! tags {
    ( $($key:tt : $val:expr),* $(,)? ) => { ... };
}
Expand description

Tags inline macro.

use co_primitives::tags;
let tags = tags!("hello": "world", "test": 123);
println!("tags: {:?}", tags);