pub struct IncrementalLexerExt { /* private fields */ }Expand description
Incremental lexer: re-lexes only the invalidated region.
Implementations§
Source§impl IncrementalLexerExt
impl IncrementalLexerExt
pub fn new(source: impl Into<String>) -> Self
pub fn apply_edit(&mut self, edit: SourceEdit)
pub fn source(&self) -> &str
pub fn version(&self) -> u64
pub fn valid_token_count(&self) -> usize
pub fn needs_relex(&self, pos: usize) -> bool
Auto Trait Implementations§
impl Freeze for IncrementalLexerExt
impl RefUnwindSafe for IncrementalLexerExt
impl Send for IncrementalLexerExt
impl Sync for IncrementalLexerExt
impl Unpin for IncrementalLexerExt
impl UnsafeUnpin for IncrementalLexerExt
impl UnwindSafe for IncrementalLexerExt
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