Returns true if and only if this span occurs on a single line.
(&self)
| 416 | |
| 417 | /// Returns true if and only if this span occurs on a single line. |
| 418 | pub fn is_one_line(&self) -> bool { |
| 419 | self.start.line == self.end.line |
| 420 | } |
| 421 | |
| 422 | /// Returns true if and only if this span is empty. That is, it points to |
| 423 | /// a single position in the concrete syntax of a regular expression. |