Lines Matching refs:Cursor

10 pub(crate) struct Cursor<'a> {
16 impl<'a> Cursor<'a> {
17 pub fn advance(&self, bytes: usize) -> Cursor<'a> {
19 Cursor {
65 fn parse(&self, tag: &str) -> Result<Cursor<'a>, Reject> {
75 type PResult<'a, O> = Result<(Cursor<'a>, O), Reject>;
77 fn skip_whitespace(input: Cursor) -> Cursor {
125 fn block_comment(input: Cursor) -> PResult<&str> {
157 fn word_break(input: Cursor) -> Result<Cursor, Reject> {
168 pub(crate) fn token_stream(mut input: Cursor) -> Result<TokenStream, LexError> {
253 fn lex_error(cursor: Cursor) -> LexError {
266 fn leaf_token(input: Cursor) -> PResult<TokenTree> {
283 fn ident(input: Cursor) -> PResult<crate::Ident> {
296 fn ident_any(input: Cursor) -> PResult<crate::Ident> {
322 fn ident_not_raw(input: Cursor) -> PResult<&str> {
341 pub(crate) fn literal(input: Cursor) -> PResult<Literal> {
347 fn literal_nocapture(input: Cursor) -> Result<Cursor, Reject> {
367 fn literal_suffix(input: Cursor) -> Cursor {
374 fn string(input: Cursor) -> Result<Cursor, Reject> {
384 fn cooked_string(mut input: Cursor) -> Result<Cursor, Reject> {
418 fn raw_string(input: Cursor) -> Result<Cursor, Reject> {
437 fn byte_string(input: Cursor) -> Result<Cursor, Reject> {
447 fn cooked_byte_string(mut input: Cursor) -> Result<Cursor, Reject> {
478 fn delimiter_of_raw_string(input: Cursor) -> PResult<&str> {
495 fn raw_byte_string(input: Cursor) -> Result<Cursor, Reject> {
518 fn c_string(input: Cursor) -> Result<Cursor, Reject> {
528 fn raw_c_string(input: Cursor) -> Result<Cursor, Reject> {
548 fn cooked_c_string(mut input: Cursor) -> Result<Cursor, Reject> {
585 fn byte(input: Cursor) -> Result<Cursor, Reject> {
607 fn character(input: Cursor) -> Result<Cursor, Reject> {
696 fn trailing_backslash(input: &mut Cursor, mut last: u8) -> Result<(), Reject> {
715 fn float(input: Cursor) -> Result<Cursor, Reject> {
725 fn float_digits(input: Cursor) -> Result<Cursor, Reject> {
810 fn int(input: Cursor) -> Result<Cursor, Reject> {
820 fn digits(mut input: Cursor) -> Result<Cursor, Reject> {
875 fn punct(input: Cursor) -> PResult<Punct> {
892 fn punct_char(input: Cursor) -> PResult<char> {
913 fn doc_comment<'a>(input: Cursor<'a>, trees: &mut TokenStreamBuilder) -> PResult<'a, ()> {
961 fn doc_comment_contents(input: Cursor) -> PResult<(&str, bool)> {
984 fn take_until_newline_or_eof(input: Cursor) -> (Cursor, &str) {