amplify

Macro list

Source
macro_rules! list {
    { } => { ... };
    { owned: $($value:expr)=>+ } => { ... };
    { $($value:expr)=>+ } => { ... };
}
Expand description

Macro for creating alloc::collections::LinkedList in the same manner as vec! is used for Vec:

#[macro_use]
extern crate amplify;
extern crate alloc;

let list = list! {
    s!("item one") =>
    s!("item two") =>
    s!("item three")
};