macro_rules! vec_no_clone_e {
{$v: expr; $c: expr} => { ... };
{$($v: expr),* $(,)?} => { ... };
}Available on crate feature
std only.Expand description
Explicitly typed equivalent of vec_no_clone!.
See the explicity typed macros section.
ยงExamples
use std::fmt::Display;
use map_macro::vec_no_clone_e;
let v: Vec<&dyn Display> = vec_no_clone_e![&0; 4];