pub struct ParserState { /* private fields */ }Expand description
Opaque state for pausing and resuming a parse.
When a visitor returns ControlFlow::Break, the
parser yields a ParserState. Pass that state and the same visitor to
resume to continue from the next block. The state is only valid for the
same src slice and visitor; do not modify src between pause and resume.
Implementations§
Source§impl ParserState
impl ParserState
Trait Implementations§
Source§impl Clone for ParserState
impl Clone for ParserState
Source§fn clone(&self) -> ParserState
fn clone(&self) -> ParserState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParserState
impl Debug for ParserState
Source§impl Default for ParserState
impl Default for ParserState
Source§impl Hash for ParserState
impl Hash for ParserState
Source§impl PartialEq for ParserState
impl PartialEq for ParserState
impl Copy for ParserState
impl Eq for ParserState
impl StructuralPartialEq for ParserState
Auto Trait Implementations§
impl Freeze for ParserState
impl RefUnwindSafe for ParserState
impl Send for ParserState
impl Sync for ParserState
impl Unpin for ParserState
impl UnwindSafe for ParserState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more