Struct lsp2::TypeHierarchyItem
pub struct TypeHierarchyItem {
pub name: String,
pub kind: SymbolKind,
pub tags: Option<SymbolTag>,
pub detail: Option<String>,
pub uri: Url,
pub range: Range,
pub selection_range: Range,
pub data: Option<Value>,
}
Fields§
§name: String
The name of this item.
kind: SymbolKind
The kind of this item.
Tags for this item.
detail: Option<String>
More detail for this item, e.g. the signature of a function.
uri: Url
The resource identifier of this item.
range: Range
The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g. comments and code.
selection_range: Range
The range that should be selected and revealed when this symbol is being
picked, e.g. the name of a function. Must be contained by the
range
.
data: Option<Value>
A data entry field that is preserved between a type hierarchy prepare and supertypes or subtypes requests. It could also be used to identify the type hierarchy in the server, helping improve the performance on resolving supertypes and subtypes.
Trait Implementations§
§impl Clone for TypeHierarchyItem
impl Clone for TypeHierarchyItem
§fn clone(&self) -> TypeHierarchyItem
fn clone(&self) -> TypeHierarchyItem
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 TypeHierarchyItem
impl Debug for TypeHierarchyItem
§impl<'de> Deserialize<'de> for TypeHierarchyItem
impl<'de> Deserialize<'de> for TypeHierarchyItem
§fn deserialize<__D>(
__deserializer: __D
) -> Result<TypeHierarchyItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TypeHierarchyItem, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<TypeHierarchyItem> for TypeHierarchyItem
impl PartialEq<TypeHierarchyItem> for TypeHierarchyItem
§fn eq(&self, other: &TypeHierarchyItem) -> bool
fn eq(&self, other: &TypeHierarchyItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for TypeHierarchyItem
impl Serialize for TypeHierarchyItem
§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 Eq for TypeHierarchyItem
impl StructuralEq for TypeHierarchyItem
impl StructuralPartialEq for TypeHierarchyItem
Auto Trait Implementations§
impl RefUnwindSafe for TypeHierarchyItem
impl Send for TypeHierarchyItem
impl Sync for TypeHierarchyItem
impl Unpin for TypeHierarchyItem
impl UnwindSafe for TypeHierarchyItem
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.