#expression #fill #array #macro #macro-use

macro fill-array

A rust macro allowing to fill arrays with an expression

3 unstable releases

0.2.1 Apr 15, 2024
0.2.0 Apr 15, 2024
0.1.0 Nov 4, 2023

#2347 in Procedural macros

Download history 1/week @ 2025-10-21 2/week @ 2026-01-13 68/week @ 2026-01-20 31/week @ 2026-01-27 33/week @ 2026-02-03

134 downloads per month
Used in serac

MIT license

4KB
60 lines

Fill Array

Usage

#[macro_use]
extern crate fill_array;

pub fn main() {
    fill![Vec::new(); 3]
}

Output

#[macro_use]
extern crate fill_array;

pub fn main() {
    [Vec::new(), Vec::new(), Vec::new()]
}

Dependencies

~140–530KB
~13K SLoC