Enum languageserver_types::TextDocumentSyncKind [−][src]
pub enum TextDocumentSyncKind { None, Full, Incremental, }
Defines how the host (editor) should sync document changes to the language server.
Variants
None
Documents should not be synced at all.
Full
Documents are synced by always sending the full content of the document.
Incremental
Documents are synced by sending the full content on open. After that only incremental updates to the document are sent.
Trait Implementations
impl Debug for TextDocumentSyncKind
[src]
impl Debug for TextDocumentSyncKind
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 TextDocumentSyncKind
[src]
impl Eq for TextDocumentSyncKind
impl PartialEq for TextDocumentSyncKind
[src]
impl PartialEq for TextDocumentSyncKind
fn eq(&self, other: &TextDocumentSyncKind) -> bool
[src]
fn eq(&self, other: &TextDocumentSyncKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Clone for TextDocumentSyncKind
[src]
impl Clone for TextDocumentSyncKind
fn clone(&self) -> TextDocumentSyncKind
[src]
fn clone(&self) -> TextDocumentSyncKind
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
impl Copy for TextDocumentSyncKind
[src]
impl Copy for TextDocumentSyncKind
impl<'de> Deserialize<'de> for TextDocumentSyncKind
[src]
impl<'de> Deserialize<'de> for TextDocumentSyncKind
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for TextDocumentSyncKind
[src]
impl Serialize for TextDocumentSyncKind
Auto Trait Implementations
impl Send for TextDocumentSyncKind
impl Send for TextDocumentSyncKind
impl Sync for TextDocumentSyncKind
impl Sync for TextDocumentSyncKind