Struct lsp_types::TextDocumentSyncKind
source · [−]pub struct TextDocumentSyncKind(_);
Expand description
Defines how the host (editor) should sync document changes to the language server.
Implementations
sourceimpl 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
sourceimpl Clone for TextDocumentSyncKind
impl Clone for TextDocumentSyncKind
sourcefn clone(&self) -> TextDocumentSyncKind
fn clone(&self) -> TextDocumentSyncKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TextDocumentSyncKind
impl Debug for TextDocumentSyncKind
sourceimpl<'de> Deserialize<'de> for TextDocumentSyncKind
impl<'de> Deserialize<'de> for TextDocumentSyncKind
sourcefn 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
sourceimpl From<TextDocumentSyncKind> for TextDocumentSyncCapability
impl From<TextDocumentSyncKind> for TextDocumentSyncCapability
sourcefn from(from: TextDocumentSyncKind) -> Self
fn from(from: TextDocumentSyncKind) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TextDocumentSyncKind> for TextDocumentSyncKind
impl PartialEq<TextDocumentSyncKind> for TextDocumentSyncKind
sourcefn eq(&self, other: &TextDocumentSyncKind) -> bool
fn eq(&self, other: &TextDocumentSyncKind) -> bool
sourceimpl Serialize for TextDocumentSyncKind
impl Serialize for TextDocumentSyncKind
sourceimpl TryFrom<&str> for TextDocumentSyncKind
impl TryFrom<&str> for TextDocumentSyncKind
impl Copy for TextDocumentSyncKind
impl Eq for TextDocumentSyncKind
impl StructuralEq for TextDocumentSyncKind
impl StructuralPartialEq for TextDocumentSyncKind
Auto Trait Implementations
impl RefUnwindSafe for TextDocumentSyncKind
impl Send for TextDocumentSyncKind
impl Sync for TextDocumentSyncKind
impl Unpin for TextDocumentSyncKind
impl UnwindSafe for TextDocumentSyncKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more