Macro map_macro::linked_list
source · macro_rules! linked_list { {$v: expr; $c: expr} => { ... }; {$($v: expr),* $(,)?} => { ... }; }
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];