let array = ["foo", "bar", "baz"]; // 配列やベクタ、スライス等 let vec: Vec<String> = array.iter().map(|&s| s.to_string()).collect(); // |s| ...
確定! 回上一頁