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

More flexible version of the vec macro from the standard library.

See this crate’s documentation for a description and more examples on how to use this macro.

Example:

use map_macro::vec_no_clone;

struct UnclonableWrapper(u8);

// the `vec!` macro from the standard library would panic at this
// call
let x = vec_no_clone![UnclonableWrapper(0); 10];

assert_eq!(x.len(), 10);