macro_rules! array {
($($elements:expr),* $(,)?) => { ... };
}
Expand description
Constructs Array
literals, similar to Rust’s standard vec!
macro.
The type of the array is inferred from the arguments.
§Example
let arr = array![3, 1, 4];
§See also
To create an Array
of variants, see the varray!
macro.
For dictionaries, a similar macro dict!
exists.