We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
イテレータのメソッドcount関数はイテレータの数を数える
count
fn main() { let v = vec![1, 2, 3]; println!("{}", v.iter().count()); // 3 let s = String::from("hoge"); println!("{}", s.chars().count()); // 4 }
There was an error while loading. Please reload this page.