例えば、リスト13-13のコードは、 Vec<T> に定義された iter メソッドを呼ぶことで ... [1, 2, 3]; let v2: Vec<_> = v1.iter().map(|x| x + 1).collect(); assert_eq!
確定! 回上一頁