pub struct Document {
pub uri: String,
pub version: i32,
pub text: String,
pub line_index: LineIndex,
}Expand description
A document in the store
Fields§
§uri: StringThe document URI
version: i32LSP version number
text: StringThe full text content
line_index: LineIndexLine index for position calculations
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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