This is achieved via the collect() method: let my_vec: Vec = (0..10).collect(); The format … - Selection from Learning Rust [Book]
確定! 回上一頁