t_wの輪郭

StringRust文字列

lines

2022/2/23 23:56:00

文字列を行ごとに繰り返すメソッド

let s = String::from("\
Rust:
safe, fast, productive.
Pick three.");
for line in s.lines() {
    println!("{}", line);
}
あれ