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

Explicitly typed equivalent of linked_list!.

See the explicity typed macros section.

§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];