pub struct TypeHierarchyItem {
pub name: String,
pub kind: TypeHierarchySymbolKind,
pub uri: String,
pub range: WireRange,
pub selection_range: WireRange,
pub detail: Option<String>,
pub data: Option<Value>,
}Expand description
Represents a type in the hierarchy
Fields§
§name: StringFully qualified name of the type (e.g., package name)
kind: TypeHierarchySymbolKindKind of symbol (Class, Method, or Function)
uri: StringURI of the document containing this type
range: WireRangeFull range of the type declaration
selection_range: WireRangeRange of the type name for highlighting
detail: Option<String>Optional detail string (e.g., “Perl Package”)
data: Option<Value>Optional additional data for client use
Trait Implementations§
Source§impl Clone for TypeHierarchyItem
impl Clone for TypeHierarchyItem
Source§fn clone(&self) -> TypeHierarchyItem
fn clone(&self) -> TypeHierarchyItem
Returns a duplicate 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<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
Source§impl Serialize for TypeHierarchyItem
impl Serialize for TypeHierarchyItem
Source§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
Auto Trait Implementations§
impl Freeze for TypeHierarchyItem
impl RefUnwindSafe for TypeHierarchyItem
impl Send for TypeHierarchyItem
impl Sync for TypeHierarchyItem
impl Unpin for TypeHierarchyItem
impl UnsafeUnpin 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