pub struct ParserCheckpoint<I> { /* private fields */ }Expand description
Represents a point during the Parser’s lifecycle; retaining state that can then be rewound.
Don’t use this directly, instead retrieve a checkpoint with Parser::checkpoint() and rewind the parser to a checkpoint with Parser::rewind().
Trait Implementations§
Source§impl<I: Clone> Clone for ParserCheckpoint<I>
impl<I: Clone> Clone for ParserCheckpoint<I>
Source§fn clone(&self) -> ParserCheckpoint<I>
fn clone(&self) -> ParserCheckpoint<I>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<I: Debug> Debug for ParserCheckpoint<I>
impl<I: Debug> Debug for ParserCheckpoint<I>
Source§impl<I> From<ParserCheckpoint<I>> for Cursor
impl<I> From<ParserCheckpoint<I>> for Cursor
Source§fn from(value: ParserCheckpoint<I>) -> Self
fn from(value: ParserCheckpoint<I>) -> Self
Converts to this type from the input type.
Source§impl<I> From<ParserCheckpoint<I>> for Kind
impl<I> From<ParserCheckpoint<I>> for Kind
Source§fn from(value: ParserCheckpoint<I>) -> Self
fn from(value: ParserCheckpoint<I>) -> Self
Converts to this type from the input type.
Source§impl<I> From<ParserCheckpoint<I>> for Token
impl<I> From<ParserCheckpoint<I>> for Token
Source§fn from(value: ParserCheckpoint<I>) -> Self
fn from(value: ParserCheckpoint<I>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<I> Freeze for ParserCheckpoint<I>where
I: Freeze,
impl<I> RefUnwindSafe for ParserCheckpoint<I>where
I: RefUnwindSafe,
impl<I> Send for ParserCheckpoint<I>where
I: Send,
impl<I> Sync for ParserCheckpoint<I>where
I: Sync,
impl<I> Unpin for ParserCheckpoint<I>where
I: Unpin,
impl<I> UnwindSafe for ParserCheckpoint<I>where
I: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)