pub struct DocumentState {
pub text: String,
pub info: DocumentInfo,
pub line_index: LineIndex,
/* private fields */
}Expand description
Stored per-document: raw text + analyzed info + precomputed line index + cached AST.
Fields§
§text: String§info: DocumentInfo§line_index: LineIndexPrecomputed line-start offsets for O(log n) position conversion.
Implementations§
Auto Trait Implementations§
impl Freeze for DocumentState
impl RefUnwindSafe for DocumentState
impl Send for DocumentState
impl Sync for DocumentState
impl Unpin for DocumentState
impl UnsafeUnpin for DocumentState
impl UnwindSafe for DocumentState
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