Create a new span by replacing the ending the position with the one given.
(self, pos: Position)
| 411 | /// Create a new span by replacing the ending the position with the one |
| 412 | /// given. |
| 413 | pub fn with_end(self, pos: Position) -> Span { |
| 414 | Span { end: pos, ..self } |
| 415 | } |
| 416 | |
| 417 | /// Returns true if and only if this span occurs on a single line. |
| 418 | pub fn is_one_line(&self) -> bool { |
no outgoing calls
no test coverage detected