pub struct CheckpointedIncrementalParser { /* private fields */ }Expand description
Incremental parser with lexer checkpointing
Implementations§
Source§impl CheckpointedIncrementalParser
impl CheckpointedIncrementalParser
Sourcepub fn new() -> CheckpointedIncrementalParser
pub fn new() -> CheckpointedIncrementalParser
Create a new incremental parser
Sourcepub fn apply_edit(&mut self, edit: &SimpleEdit) -> Result<Node, ParseError>
pub fn apply_edit(&mut self, edit: &SimpleEdit) -> Result<Node, ParseError>
Apply an edit and reparse incrementally
Sourcepub fn stats(&self) -> &IncrementalStats
pub fn stats(&self) -> &IncrementalStats
Get parsing statistics
Sourcepub fn clear_caches(&mut self)
pub fn clear_caches(&mut self)
Clear all caches
Trait Implementations§
Source§impl Default for CheckpointedIncrementalParser
impl Default for CheckpointedIncrementalParser
Source§fn default() -> CheckpointedIncrementalParser
fn default() -> CheckpointedIncrementalParser
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CheckpointedIncrementalParser
impl RefUnwindSafe for CheckpointedIncrementalParser
impl Send for CheckpointedIncrementalParser
impl Sync for CheckpointedIncrementalParser
impl Unpin for CheckpointedIncrementalParser
impl UnsafeUnpin for CheckpointedIncrementalParser
impl UnwindSafe for CheckpointedIncrementalParser
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