Rust macro for repeating array elements

前端 未结 0 1530
北荒
北荒 2021-01-24 23:33

I\'m trying to write a Rust macro that fills up an array with repeating elements, in this case with zeros. This is what I came up with:

macro_rules! pad4  {
    (         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题