tb

Macro array_from

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

Combines the array literal with .into().

ยงExamples

use tb::array_from;
let a: &[String] = &array_from!["a", "b", "c", "d"];