Struct lsp2::DocumentHighlightKind
pub struct DocumentHighlightKind(_);
Expand description
A document highlight kind.
Implementations§
§impl DocumentHighlightKind
impl DocumentHighlightKind
pub const TEXT: DocumentHighlightKind = DocumentHighlightKind(1)
pub const TEXT: DocumentHighlightKind = DocumentHighlightKind(1)
A textual occurrence.
pub const READ: DocumentHighlightKind = DocumentHighlightKind(2)
pub const READ: DocumentHighlightKind = DocumentHighlightKind(2)
Read-access of a symbol, like reading a variable.
pub const WRITE: DocumentHighlightKind = DocumentHighlightKind(3)
pub const WRITE: DocumentHighlightKind = DocumentHighlightKind(3)
Write-access of a symbol, like writing to a variable.
Trait Implementations§
§impl Clone for DocumentHighlightKind
impl Clone for DocumentHighlightKind
§fn clone(&self) -> DocumentHighlightKind
fn clone(&self) -> DocumentHighlightKind
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 DocumentHighlightKind
impl Debug for DocumentHighlightKind
§impl<'de> Deserialize<'de> for DocumentHighlightKind
impl<'de> Deserialize<'de> for DocumentHighlightKind
§fn deserialize<__D>(
__deserializer: __D
) -> Result<DocumentHighlightKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<DocumentHighlightKind, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<DocumentHighlightKind> for DocumentHighlightKind
impl PartialEq<DocumentHighlightKind> for DocumentHighlightKind
§fn eq(&self, other: &DocumentHighlightKind) -> bool
fn eq(&self, other: &DocumentHighlightKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for DocumentHighlightKind
impl Serialize for DocumentHighlightKind
§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 DocumentHighlightKind
impl TryFrom<&str> for DocumentHighlightKind
impl Copy for DocumentHighlightKind
impl Eq for DocumentHighlightKind
impl StructuralEq for DocumentHighlightKind
impl StructuralPartialEq for DocumentHighlightKind
Auto Trait Implementations§
impl RefUnwindSafe for DocumentHighlightKind
impl Send for DocumentHighlightKind
impl Sync for DocumentHighlightKind
impl Unpin for DocumentHighlightKind
impl UnwindSafe for DocumentHighlightKind
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.