(&mut self, c: char)
| 1638 | } |
| 1639 | |
| 1640 | fn push(&mut self, c: char) { |
| 1641 | match self { |
| 1642 | LexedText::Source { range, source } => { |
| 1643 | *range = range.add_end(c.text_len()); |
| 1644 | debug_assert!(source[*range].ends_with(c)); |
| 1645 | } |
| 1646 | LexedText::Owned(owned) => owned.push(c), |
| 1647 | } |
| 1648 | } |
| 1649 | |
| 1650 | fn as_str<'b>(&'b self) -> &'b str |
| 1651 | where |
no test coverage detected