fizyk20 / generic-array

Generic array types in Rust
MIT License
405 stars 77 forks source link

repeat-expressions for arr macro #130

Closed eggyal closed 2 years ago

eggyal commented 2 years ago

Adds an analogue of the [expr; LENGTH] array initialiser to the arr! macro, i.e. arr![Type; expr; LENGTH]. Can be used in const contexts.

Note that this implementation builds upon #129, which should be reviewed/merged before this.