Returns the line content by concatenating all alive tokens.
(&self)
| 147 | |
| 148 | /// Returns the line content by concatenating all alive tokens. |
| 149 | pub fn content(&self) -> String { |
| 150 | self.tokens |
| 151 | .iter() |
| 152 | .filter(|t| t.is_alive()) |
| 153 | .map(|t| t.content_str()) |
| 154 | .collect() |
| 155 | } |
| 156 | |
| 157 | /// Returns the line content including deleted tokens (for history). |
| 158 | pub fn full_content(&self) -> String { |
nothing calls this directly
no test coverage detected