Macro vector

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

Creates a new Vec instance.

This macro can be used in two forms:

  • Without arguments, it creates an empty Vec.
  • With elements, it creates a Vec initialized with the provided elements.