#[non_exhaustive]pub enum TextSync {
None,
Full,
Incremental,
}Expand description
Kind of text-document synchronization the server supports.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No synchronization.
Full
Full text on every change. Simple but expensive.
Incremental
Incremental edits.
Trait Implementations§
impl Copy for TextSync
impl Eq for TextSync
impl StructuralPartialEq for TextSync
Auto Trait Implementations§
impl Freeze for TextSync
impl RefUnwindSafe for TextSync
impl Send for TextSync
impl Sync for TextSync
impl Unpin for TextSync
impl UnsafeUnpin for TextSync
impl UnwindSafe for TextSync
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