#fill #array #allowing #expression #macro

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

#341 in Procedural macros

Download history 3/week @ 2024-02-15 11/week @ 2024-02-22 3/week @ 2024-02-29 1/week @ 2024-03-07 1/week @ 2024-03-14 11/week @ 2024-03-28 10/week @ 2024-04-04 209/week @ 2024-04-11 29/week @ 2024-04-18

238 downloads per month

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

~325–790KB
~19K SLoC