Returns the end of the string starting at `start_pos`, or an empty string if `start_pos` is after the string's end.
(&self, start_pos: usize)
| 51 | /// Returns the end of the string starting at `start_pos`, or an empty string if `start_pos` is |
| 52 | /// after the string's end. |
| 53 | pub fn end(&self, start_pos: usize) -> String { |
| 54 | self.chars().skip(start_pos).collect() |
| 55 | } |
| 56 | |
| 57 | /// Returns the characters from the start of the string to `end_pos`, excluding `end_pos`. |
| 58 | /// |