tb

Macro vec_from

Source
macro_rules! vec_from {
    ($($item:expr),* $(,)?) => { ... };
}
Expand description

Combines the vector literal with .into().

ยงExamples

use tb::vec_from;
let a: Vec<String> = vec_from!["a", "b", "c", "d"];