https://doc.rust-lang.org/book/second-edition/index.html ... You may not index a string directly; Rust stops you ... for (i, item) in s.char_indices() {.
確定! 回上一頁