macro_rules! list {
{ } => { ... };
{ $($value:expr)=>+ } => { ... };
}
Expand description
Macro for creating std::collections::LinkedList
in the same manner as
vec!
is used for Vec
:
#[macro_use]
extern crate amplify;
let list = list! {
s!("item one") =>
s!("item two") =>
s!("item three")
};