macro_rules! array {
($($item:expr),* $(,)?) => { ... };
}Expand description
Macro for creating fixed-size arrays with type inference
Performance: Stack-allocated, zero heap operations
ยงExamples
let arr = array![1, 2, 3, 4];
assert_eq!(arr.len(), 4);