Returns the logical `LineBuffer` length (in UTF-8 code point count and not in bytes).
(&self)
| 40 | |
| 41 | /// Returns the logical `LineBuffer` length (in UTF-8 code point count and not in bytes). |
| 42 | pub fn len(&self) -> usize { |
| 43 | self.line.chars().count() |
| 44 | } |
| 45 | |
| 46 | /// Gets and iterator over buffer chars. |
| 47 | pub fn chars(&self) -> Chars<'_> { |