Trying to use the .graphemes() iterator, I get this:
error: no method named `graphemes` found for type `&str` in the current scope
--> src/main.rs:84:24
|
| for gr in line.graphemes() { // for all graphemes
| ^^^^^^^^^
Is .graphemes() a standard method of &str? I thought it became one last year. But I've also seen discussions of it being moved to some external crate. There's a version in unicode_segmentation - Rust but I thought that had been superseded. There's std::str::Graphemes - Rust but I have "use std::str" and that's not bringing it in.
(Latest Rust stable, downloaded a few minutes ago.)