pub struct Doc {
pub rope: Rope,
pub version: i32,
}Expand description
Document state using Rope for efficient text operations
The Doc struct stores document content in a Rope data structure,
providing O(log n) performance for edits while maintaining UTF-8/UTF-16
position mapping capabilities for LSP compliance.
Fields§
§rope: RopeRope-backed document content for efficient edits and slicing
version: i32Document version number for LSP synchronization
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Doc
impl RefUnwindSafe for Doc
impl Send for Doc
impl Sync for Doc
impl Unpin for Doc
impl UnsafeUnpin for Doc
impl UnwindSafe for Doc
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