Lines Matching refs:rest
10 pub rest: &'a str, field
17 let (_front, rest) = self.rest.split_at(bytes); in advance()
19 rest, in advance()
26 self.rest.starts_with(s) in starts_with()
30 self.rest.is_empty() in is_empty()
34 self.rest.len() in len()
38 self.rest.as_bytes() in as_bytes()
42 self.rest.bytes() in bytes()
46 self.rest.chars() in chars()
50 self.rest.char_indices() in char_indices()
86 Ok((rest, _)) => { in skip_whitespace()
87 s = rest; in skip_whitespace()
130 return Ok((input.advance(i + 2), &input.rest[..i + 2])); in block_comment()
159 if let Ok((rest, tt)) = doc_comment(input) { in token_stream()
161 input = rest; in token_stream()
222 let (rest, mut tt) = match leaf_token(input) { in token_stream()
223 Ok((rest, tt)) => (rest, tt), in token_stream()
230 hi: rest.off, in token_stream()
233 input = rest; in token_stream()
277 let rest = input.advance((raw as usize) << 1); in ident_any() localVariable
279 let (rest, sym) = ident_not_raw(rest)?; in ident_any()
283 return Ok((rest, ident)); in ident_any()
291 Ok((rest, ident)) in ident_any()
310 Ok((input.advance(end), &input.rest[..end])) in ident_not_raw()
314 let rest = literal_nocapture(input)?; in literal() localVariable
315 let end = input.len() - rest.len(); in literal()
316 Ok((rest, Literal::_new(input.rest[..end].to_string()))) in literal()
435 let rest = input.advance(newline + 1); in cooked_byte_string() localVariable
436 let mut chars = rest.char_indices(); in cooked_byte_string()
444 input = rest.advance(offset); in cooked_byte_string()
476 '"' if input.rest[i + 1..].starts_with(&input.rest[..n]) => { in raw_string()
477 let rest = input.advance(i + 1 + n); in raw_string() localVariable
478 return Ok(literal_suffix(rest)); in raw_string()
536 ($chars:ident @ $pat:pat $(| $rest:pat)*) => {
539 $pat $(| $rest)* => ch,
592 let mut rest = float_digits(input)?; in float() localVariable
593 if let Some(ch) = rest.chars().next() { in float()
595 rest = ident_not_raw(rest)?.0; in float()
598 word_break(rest) in float()
688 let mut rest = digits(input)?; in int() localVariable
689 if let Some(ch) = rest.chars().next() { in int()
691 rest = ident_not_raw(rest)?.0; in int()
694 word_break(rest) in int()
753 let (rest, ch) = punct_char(input)?; in punct()
755 if ident_any(rest)?.0.starts_with("'") { in punct()
758 Ok((rest, Punct::new('\'', Spacing::Joint))) in punct()
761 let kind = match punct_char(rest) { in punct()
765 Ok((rest, Punct::new(ch, kind))) in punct()
793 let (rest, (comment, inner)) = doc_comment_contents(input)?; in doc_comment()
798 hi: rest.off, in doc_comment()
803 let rest = &scan_for_bare_cr[cr + 1..]; in doc_comment() localVariable
804 if !rest.starts_with('\n') { in doc_comment()
807 scan_for_bare_cr = rest; in doc_comment()
828 Ok((rest, trees)) in doc_comment()
846 } else if input.starts_with("/**") && !input.rest[3..].starts_with('*') { in doc_comment_contents()
859 return (input.advance(i), &input.rest[..i]); in take_until_newline_or_eof()
860 } else if ch == '\r' && input.rest[i + 1..].starts_with('\n') { in take_until_newline_or_eof()
861 return (input.advance(i + 1), &input.rest[..i]); in take_until_newline_or_eof()
865 (input.advance(input.len()), input.rest) in take_until_newline_or_eof()