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 more
sourceimpl 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
Performs the conversion.
sourceimpl PartialEq<TextDocumentSyncKind> for TextDocumentSyncKind
impl PartialEq<TextDocumentSyncKind> for TextDocumentSyncKind
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &TextDocumentSyncKind) -> bool
fn ne(&self, other: &TextDocumentSyncKind) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more