Struct lsp_types::TextDocumentSyncKind
source · pub struct TextDocumentSyncKind(/* private fields */);
Expand description
Defines how the host (editor) should sync document changes to the language server.
Implementations§
source§impl TextDocumentSyncKind
impl TextDocumentSyncKind
sourcepub const NONE: TextDocumentSyncKind = _
pub const NONE: TextDocumentSyncKind = _
Documents should not be synced at all.
sourcepub const FULL: TextDocumentSyncKind = _
pub const FULL: TextDocumentSyncKind = _
Documents are synced by always sending the full content of the document.
sourcepub const INCREMENTAL: TextDocumentSyncKind = _
pub const INCREMENTAL: TextDocumentSyncKind = _
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 From<TextDocumentSyncKind> for TextDocumentSyncCapability
impl From<TextDocumentSyncKind> for TextDocumentSyncCapability
source§fn from(from: TextDocumentSyncKind) -> Self
fn from(from: TextDocumentSyncKind) -> Self
Converts to this type from the input type.
source§impl PartialEq for TextDocumentSyncKind
impl PartialEq for TextDocumentSyncKind
source§fn eq(&self, other: &TextDocumentSyncKind) -> bool
fn eq(&self, other: &TextDocumentSyncKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TextDocumentSyncKind
impl Serialize for TextDocumentSyncKind
source§impl TryFrom<&str> for TextDocumentSyncKind
impl TryFrom<&str> 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