Returns the length of the [Span].
(&self)
| 63 | |
| 64 | /// Returns the length of the [Span]. |
| 65 | pub fn len(&self) -> u32 { |
| 66 | debug_assert!(self.start <= self.end); |
| 67 | self.end.0 - self.start.0 |
| 68 | } |
| 69 | |
| 70 | /// Given a string `source`, establish the line number and column number that this span would reside in. |
| 71 | pub fn line_and_column(self, source: &'_ str) -> (u32, u32) { |
no outgoing calls