Lines Matching refs:Cursor

12 pub(crate) struct Cursor<'a> {  struct
18 impl<'a> Cursor<'a> { argument
19 pub(crate) fn advance(&self, bytes: usize) -> Cursor<'a> { in advance()
21 Cursor { in advance()
67 fn parse(&self, tag: &str) -> Result<Cursor<'a>, Reject> { in parse()
77 type PResult<'a, O> = Result<(Cursor<'a>, O), Reject>;
79 fn skip_whitespace(input: Cursor) -> Cursor { in skip_whitespace() argument
127 fn block_comment(input: Cursor) -> PResult<&str> { in block_comment()
159 fn word_break(input: Cursor) -> Result<Cursor, Reject> { in word_break() argument
170 pub(crate) fn token_stream(mut input: Cursor) -> Result<TokenStream, LexError> { in token_stream()
255 fn lex_error(cursor: Cursor) -> LexError { in lex_error()
268 fn leaf_token(input: Cursor) -> PResult<TokenTree> { in leaf_token()
285 fn ident(input: Cursor) -> PResult<crate::Ident> { in ident()
298 fn ident_any(input: Cursor) -> PResult<crate::Ident> { in ident_any()
320 fn ident_not_raw(input: Cursor) -> PResult<&str> { in ident_not_raw()
339 pub(crate) fn literal(input: Cursor) -> PResult<Literal> { in literal()
345 fn literal_nocapture(input: Cursor) -> Result<Cursor, Reject> { in literal_nocapture() argument
365 fn literal_suffix(input: Cursor) -> Cursor { in literal_suffix() argument
372 fn string(input: Cursor) -> Result<Cursor, Reject> { in string() argument
382 fn cooked_string(mut input: Cursor) -> Result<Cursor, Reject> { in cooked_string() argument
416 fn raw_string(input: Cursor) -> Result<Cursor, Reject> { in raw_string() argument
435 fn byte_string(input: Cursor) -> Result<Cursor, Reject> { in byte_string() argument
445 fn cooked_byte_string(mut input: Cursor) -> Result<Cursor, Reject> { in cooked_byte_string() argument
476 fn delimiter_of_raw_string(input: Cursor) -> PResult<&str> { in delimiter_of_raw_string()
493 fn raw_byte_string(input: Cursor) -> Result<Cursor, Reject> { in raw_byte_string() argument
516 fn c_string(input: Cursor) -> Result<Cursor, Reject> { in c_string() argument
526 fn raw_c_string(input: Cursor) -> Result<Cursor, Reject> { in raw_c_string() argument
546 fn cooked_c_string(mut input: Cursor) -> Result<Cursor, Reject> { in cooked_c_string() argument
583 fn byte(input: Cursor) -> Result<Cursor, Reject> { in byte() argument
605 fn character(input: Cursor) -> Result<Cursor, Reject> { in character() argument
694 fn trailing_backslash(input: &mut Cursor, mut last: u8) -> Result<(), Reject> { in trailing_backslash() argument
713 fn float(input: Cursor) -> Result<Cursor, Reject> { in float() argument
723 fn float_digits(input: Cursor) -> Result<Cursor, Reject> { in float_digits() argument
808 fn int(input: Cursor) -> Result<Cursor, Reject> { in int() argument
818 fn digits(mut input: Cursor) -> Result<Cursor, Reject> { in digits() argument
873 fn punct(input: Cursor) -> PResult<Punct> { in punct()
893 fn punct_char(input: Cursor) -> PResult<char> { in punct_char()
914 fn doc_comment<'a>(input: Cursor<'a>, trees: &mut TokenStreamBuilder) -> PResult<'a, ()> { in doc_comment()
962 fn doc_comment_contents(input: Cursor) -> PResult<(&str, bool)> { in doc_comment_contents()
985 fn take_until_newline_or_eof(input: Cursor) -> (Cursor, &str) { in take_until_newline_or_eof() argument