macro_rules! linked_list_e {
    {$v: expr; $c: expr} => { ... };
    {$($v: expr),* $(,)?} => { ... };
}
Expand description

Explicitly typed equivalent of linked_list!, suitable for trait object values.

Examples

use std::collections::LinkedList;
use std::fmt::Debug;

use map_macro::linked_list_e;

let v: LinkedList<&dyn Debug> = linked_list_e![&0, &1, &2, &3];
let v: LinkedList<&dyn Debug> = linked_list_e![&0; 4];