Struct lsp2::FileChangeType
pub struct FileChangeType(_);
Expand description
The file event type.
Implementations§
§impl FileChangeType
impl FileChangeType
pub const CREATED: FileChangeType = FileChangeType(1)
pub const CREATED: FileChangeType = FileChangeType(1)
The file got created.
pub const CHANGED: FileChangeType = FileChangeType(2)
pub const CHANGED: FileChangeType = FileChangeType(2)
The file got changed.
pub const DELETED: FileChangeType = FileChangeType(3)
pub const DELETED: FileChangeType = FileChangeType(3)
The file got deleted.
Trait Implementations§
§impl Clone for FileChangeType
impl Clone for FileChangeType
§fn clone(&self) -> FileChangeType
fn clone(&self) -> FileChangeType
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 more§impl Debug for FileChangeType
impl Debug for FileChangeType
§impl<'de> Deserialize<'de> for FileChangeType
impl<'de> Deserialize<'de> for FileChangeType
§fn deserialize<__D>(
__deserializer: __D
) -> Result<FileChangeType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<FileChangeType, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Hash for FileChangeType
impl Hash for FileChangeType
§impl PartialEq<FileChangeType> for FileChangeType
impl PartialEq<FileChangeType> for FileChangeType
§fn eq(&self, other: &FileChangeType) -> bool
fn eq(&self, other: &FileChangeType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for FileChangeType
impl Serialize for FileChangeType
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl TryFrom<&str> for FileChangeType
impl TryFrom<&str> for FileChangeType
impl Copy for FileChangeType
impl Eq for FileChangeType
impl StructuralEq for FileChangeType
impl StructuralPartialEq for FileChangeType
Auto Trait Implementations§
impl RefUnwindSafe for FileChangeType
impl Send for FileChangeType
impl Sync for FileChangeType
impl Unpin for FileChangeType
impl UnwindSafe for FileChangeType
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.