diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-01-01 17:54:31 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-01-01 17:54:31 +0100 |
| commit | 8cad78481cd52680317032c3bb84cacda5666489 (patch) | |
| tree | 7cc0d17b2ec6d231c33205fa4765de1d63ee32ea /src/parse/scanner.rs | |
| parent | 2b6ccd82489afbcd679fb3199de2618fa8811325 (diff) | |
A few small improvements ♻
Diffstat (limited to 'src/parse/scanner.rs')
| -rw-r--r-- | src/parse/scanner.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/parse/scanner.rs b/src/parse/scanner.rs index c4ba2cfd..69ad2138 100644 --- a/src/parse/scanner.rs +++ b/src/parse/scanner.rs @@ -102,11 +102,6 @@ impl<'s> Scanner<'s> { self.peek().map(f).unwrap_or(false) } - /// Whether the end of the source string is reached. - pub fn eof(&self) -> bool { - self.index == self.src.len() - } - /// The previous index in the source string. pub fn last_index(&self) -> usize { self.src[.. self.index] @@ -126,11 +121,6 @@ impl<'s> Scanner<'s> { self.index = index; } - /// The full source string. - pub fn src(&self) -> &'s str { - self.src - } - /// Slice a part out of the source string. pub fn get<I>(&self, index: I) -> &'s str where |
