Macro vector

Source
macro_rules! vector {
    () => { ... };
    ($($elem:expr),*) => { ... };
}
Expand description

Creates a new vector instance.

§Arguments

  • expr - The expression(s) to initialize the vector.

§Returns

  • Vec<T> - A new vector containing the given elements.