Struct languageserver_types::TextDocumentItem [−][src]
pub struct TextDocumentItem { pub uri: Url, pub language_id: String, pub version: u64, pub text: String, }
An item to transfer a text document from the client to the server.
Fields
uri: Url
The text document's URI.
language_id: String
The text document's language identifier.
version: u64
The version number of this document (it will strictly increase after each change, including undo/redo).
text: String
The content of the opened text document.
Methods
impl TextDocumentItem
[src]
impl TextDocumentItem
Trait Implementations
impl Debug for TextDocumentItem
[src]
impl Debug for TextDocumentItem
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for TextDocumentItem
[src]
impl Eq for TextDocumentItem
impl PartialEq for TextDocumentItem
[src]
impl PartialEq for TextDocumentItem
fn eq(&self, other: &TextDocumentItem) -> bool
[src]
fn eq(&self, other: &TextDocumentItem) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TextDocumentItem) -> bool
[src]
fn ne(&self, other: &TextDocumentItem) -> bool
This method tests for !=
.
impl Clone for TextDocumentItem
[src]
impl Clone for TextDocumentItem
fn clone(&self) -> TextDocumentItem
[src]
fn clone(&self) -> TextDocumentItem
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for TextDocumentItem
impl Send for TextDocumentItem
impl Sync for TextDocumentItem
impl Sync for TextDocumentItem