t_wの輪郭

Feedlyでフォローするボタン

lines

2022/2/24 8:56:00

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

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