pub enum TextDocumentSyncKind {
None = 0,
Full = 1,
Incremental = 2,
}
Expand description
Defines how the host (editor) should sync document changes to the language server.
Variants§
None = 0
Documents should not be synced at all.
Full = 1
Documents are synced by always sending the full content of the document.
Incremental = 2
Documents are synced by sending the full content on open. After that only incremental updates to the document are sent.
Trait Implementations§
Source§impl Clone for TextDocumentSyncKind
impl Clone for TextDocumentSyncKind
Source§fn clone(&self) -> TextDocumentSyncKind
fn clone(&self) -> TextDocumentSyncKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TextDocumentSyncKind
impl Debug for TextDocumentSyncKind
Source§impl<'de> Deserialize<'de> for TextDocumentSyncKind
impl<'de> Deserialize<'de> for TextDocumentSyncKind
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TextDocumentSyncKind
impl PartialEq for TextDocumentSyncKind
Source§impl Serialize for TextDocumentSyncKind
impl Serialize for TextDocumentSyncKind
impl Copy for TextDocumentSyncKind
impl Eq for TextDocumentSyncKind
impl StructuralPartialEq for TextDocumentSyncKind
Auto Trait Implementations§
impl Freeze for TextDocumentSyncKind
impl RefUnwindSafe for TextDocumentSyncKind
impl Send for TextDocumentSyncKind
impl Sync for TextDocumentSyncKind
impl Unpin for TextDocumentSyncKind
impl UnwindSafe for TextDocumentSyncKind
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