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
NoneDocuments should not be synced at all.
FullDocuments are synced by always sending the full content of the document.
IncrementalDocuments 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 TextDocumentSyncKindfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for TextDocumentSyncKind[src]
impl Eq for TextDocumentSyncKindimpl PartialEq for TextDocumentSyncKind[src]
impl PartialEq for TextDocumentSyncKindfn eq(&self, other: &TextDocumentSyncKind) -> bool[src]
fn eq(&self, other: &TextDocumentSyncKind) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Clone for TextDocumentSyncKind[src]
impl Clone for TextDocumentSyncKindfn clone(&self) -> TextDocumentSyncKind[src]
fn clone(&self) -> TextDocumentSyncKindReturns 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 TextDocumentSyncKindimpl<'de> Deserialize<'de> for TextDocumentSyncKind[src]
impl<'de> Deserialize<'de> for TextDocumentSyncKindfn 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 TextDocumentSyncKindAuto Trait Implementations
impl Send for TextDocumentSyncKind
impl Send for TextDocumentSyncKindimpl Sync for TextDocumentSyncKind
impl Sync for TextDocumentSyncKind