pub struct Document {
pub uri: Uri,
pub version: Option<i32>,
pub text: String,
}Expand description
Text document packed up with URI string and version information.
This is similar to the LSP TextDocumentItem, except that it originates
on the server side, or from the CLI.
There are internally defined URI’s for strings and macros.
Fields§
§uri: Uri§version: Option<i32>§text: StringImplementations§
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 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