Returns an iterator over tokenized lines. Lines are processed lazily as the iterator is consumed.
(&self)
| 75 | /// |
| 76 | /// Lines are processed lazily as the iterator is consumed. |
| 77 | pub fn lines(&self) -> LineIterator<'a> { |
| 78 | LineIterator { |
| 79 | content: self.content, |
| 80 | options: self.options.clone(), |
| 81 | position: 0, |
| 82 | line_number: 0, |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | /// Tokenizes all content and returns the result with statistics. |
| 87 | /// |