Macro amplify::list

source ·
macro_rules! list {
    { } => { ... };
    { owned: $($value:expr)=>+ } => { ... };
    { $($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")
};