pub fn rest(self: Self) []const T self: Self3367
3368
3369
3370
3371
3372
3373
3374
3375 pub fn rest(self: Self) []const T {
// move to beginning of token
var index: usize = self.index;
while (index < self.buffer.len and self.isDelimiter(index)) : (index += switch (delimiter_type) {
.sequence => self.delimiter.len,
.any, .scalar => 1,
}) {}
return self.buffer[index..];
}
Returns a slice of the remaining bytes. Does not affect iterator state.