-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
the doc's example is
// {{{ Macros
/// Macro for building group of key-value pairs:
/// [`OwnedKV`](struct.OwnedKV.html)
///
/// ```
/// #[macro_use]
/// extern crate slog;
///
/// fn main() {
/// let drain = slog::Discard;
/// let _root = slog::Logger::root(
/// drain,
/// o!("key1" => "value1", "key2" => "value2")
/// );
/// }
/// ```
#[macro_export(local_inner_macros)]
macro_rules! o(
($($args:tt)*) => {
$crate::OwnedKV(kv!($($args)*))
};
);
but I want to init a hashmap, which may contains a lot of key values, something like o!(key_values), is there any api to use it?
Metadata
Metadata
Assignees
Labels
No labels