Skip to main content

vec_

Macro vec_ 

Source
macro_rules! vec_ {
    ($($elem:expr),* $(,)?) => { ... };
    (: $($elem:expr),*) => { ... };
    ($t:ty: $($elem:expr),*) => { ... };
    ($f:ident : $($elem:expr),*) => { ... };
}
Expand description

Map a function over the elements of a vec![]. By default, .to_string() is applied. To specify the mapping, a function or type followed by | can precede the elements. The pure prefix : is shorthand for calling .into().