Lines Matching refs:Cursor
189 use crate::buffer::{Cursor, TokenBuffer};
265 cell: Cell<Cursor<'static>>,
266 marker: PhantomData<Cursor<'a>>,
340 cursor: Cursor<'c>,
349 marker: PhantomData<fn(Cursor<'c>) -> Cursor<'a>>,
353 type Target = Cursor<'c>;
378 pub(crate) fn advance_step_cursor<'c, 'a>(proof: StepCursor<'c, 'a>, to: Cursor<'c>) -> Cursor<'a> { in advance_step_cursor()
384 unsafe { mem::transmute::<Cursor<'c>, Cursor<'a>>(to) } in advance_step_cursor()
389 cursor: Cursor, in new_parse_buffer() argument
395 cell: Cell::new(unsafe { mem::transmute::<Cursor, Cursor<'static>>(cursor) }), in new_parse_buffer()
447 fn span_of_unexpected_ignoring_nones(mut cursor: Cursor) -> Option<Span> { in span_of_unexpected_ignoring_nones()
623 fn peek2(buffer: &ParseBuffer, peek: fn(Cursor) -> bool) -> bool { in peek2()
638 fn peek3(buffer: &ParseBuffer, peek: fn(Cursor) -> bool) -> bool { in peek3()
640 if group.0.skip().and_then(Cursor::skip).map_or(false, peek) { in peek3()
647 .and_then(Cursor::skip) in peek3()
1008 F: for<'c> FnOnce(StepCursor<'c, 'a>) -> Result<(R, Cursor<'c>)>, in step()
1053 pub fn cursor(&self) -> Cursor<'a> { in cursor()
1086 input.step(|cursor| Ok((cursor.token_stream(), Cursor::empty()))) in parse()