pub struct IncrementalSession {
pub source: SimpleRope,
pub version: ParseVersion,
pub errors: IncrementalErrorMap,
pub stats: IncrParseStats,
}Expand description
A session-level incremental parse manager.
Fields§
§source: SimpleRope§version: ParseVersion§errors: IncrementalErrorMap§stats: IncrParseStatsImplementations§
Source§impl IncrementalSession
impl IncrementalSession
pub fn new(source: impl Into<String>) -> Self
pub fn apply_edit(&mut self, edit: SourceEdit)
pub fn source_text(&self) -> String
pub fn has_errors(&self) -> bool
pub fn current_version(&self) -> u64
Auto Trait Implementations§
impl Freeze for IncrementalSession
impl RefUnwindSafe for IncrementalSession
impl Send for IncrementalSession
impl Sync for IncrementalSession
impl Unpin for IncrementalSession
impl UnsafeUnpin for IncrementalSession
impl UnwindSafe for IncrementalSession
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