Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Rust 中创建/分配未初始化的固定大小的向量?以下是我在 Java 中的做法:
int[] a = new int[128];
这有效:
let a = [0, .. 128];
(通过Rust IRC 频道)