macro_rules! linked_list {
    {$v: expr; $c: expr} => { ... };
    {$($v: expr),* $(,)?} => { ... };
}
Available on crate feature std only.
Expand description

Macro for creating a LinkedList.

Follows the same syntax as the vec! macro.

§Examples

use map_macro::linked_list;

let v = linked_list![0, 1, 2, 3];
let v = linked_list![0; 4];