pub enum DocumentChange {
TextDocumentEdit(TextDocumentEdit),
CreateFile(CreateFile),
RenameFile(RenameFile),
DeleteFile(DeleteFile),
}Variants§
TextDocumentEdit(TextDocumentEdit)
CreateFile(CreateFile)
RenameFile(RenameFile)
DeleteFile(DeleteFile)
Trait Implementations§
Source§impl Clone for DocumentChange
impl Clone for DocumentChange
Source§fn clone(&self) -> DocumentChange
fn clone(&self) -> DocumentChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DocumentChange
impl Debug for DocumentChange
Source§impl<'de> Deserialize<'de> for DocumentChange
impl<'de> Deserialize<'de> for DocumentChange
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<CreateFile> for DocumentChange
impl From<CreateFile> for DocumentChange
Source§fn from(v: CreateFile) -> Self
fn from(v: CreateFile) -> Self
Converts to this type from the input type.
Source§impl From<DeleteFile> for DocumentChange
impl From<DeleteFile> for DocumentChange
Source§fn from(v: DeleteFile) -> Self
fn from(v: DeleteFile) -> Self
Converts to this type from the input type.
Source§impl From<RenameFile> for DocumentChange
impl From<RenameFile> for DocumentChange
Source§fn from(v: RenameFile) -> Self
fn from(v: RenameFile) -> Self
Converts to this type from the input type.
Source§impl From<TextDocumentEdit> for DocumentChange
impl From<TextDocumentEdit> for DocumentChange
Source§fn from(v: TextDocumentEdit) -> Self
fn from(v: TextDocumentEdit) -> Self
Converts to this type from the input type.
Source§impl Hash for DocumentChange
impl Hash for DocumentChange
Source§impl PartialEq for DocumentChange
impl PartialEq for DocumentChange
Source§fn eq(&self, other: &DocumentChange) -> bool
fn eq(&self, other: &DocumentChange) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DocumentChange
impl Serialize for DocumentChange
impl Eq for DocumentChange
impl StructuralPartialEq for DocumentChange
Auto Trait Implementations§
impl Freeze for DocumentChange
impl RefUnwindSafe for DocumentChange
impl Send for DocumentChange
impl Sync for DocumentChange
impl Unpin for DocumentChange
impl UnsafeUnpin for DocumentChange
impl UnwindSafe for DocumentChange
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