Creating two dimensional mutable array in Rust with undefined size

后端 未结 0 621
[愿得一人]
[愿得一人] 2021-01-21 16:56

I\'m sorry I couldn\'t find a way to do this simple thing in Rust :

let mut a: [i32][i32];
a[0][0] = 1;
a[0][1] = 2;
a[1][0] = 8;

Thank you for y

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