Why the array type in Rust is defined using semicolon syntax?

后端 未结 0 1048
没有蜡笔的小新
没有蜡笔的小新 2021-01-31 20:27

To describe the array of 5 integers in Rust, we should use [i32; 5] syntax. Type and number of the elements are separated by semicolon and the order is important. W

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