Struct lsp_types::TypeHierarchyItem
source · 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<LSPAny>,
}
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<LSPAny>
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§
source§impl Clone for TypeHierarchyItem
impl Clone for TypeHierarchyItem
source§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 moresource§impl Debug for TypeHierarchyItem
impl Debug for TypeHierarchyItem
source§impl<'de> Deserialize<'de> for TypeHierarchyItem
impl<'de> Deserialize<'de> for TypeHierarchyItem
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 PartialEq for TypeHierarchyItem
impl PartialEq for TypeHierarchyItem
source§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 ==
.source§impl Serialize for TypeHierarchyItem
impl Serialize for TypeHierarchyItem
impl Eq for TypeHierarchyItem
impl StructuralPartialEq for TypeHierarchyItem
Auto Trait Implementations§
impl Freeze for TypeHierarchyItem
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