pub struct HierarchyItem {
pub name: String,
pub detail: Option<String>,
pub kind: SymbolKind,
pub location: SymbolLocation,
pub selection_range: Utf16Range,
pub data_json: Option<String>,
}Expand description
A generic cross-file “hierarchy item” (call hierarchy / type hierarchy).
Fields§
§name: StringDisplay name (e.g. function/type name).
detail: Option<String>Optional detail string (e.g. signature).
kind: SymbolKindCoarse kind tag (usually from LSP’s SymbolKind).
location: SymbolLocationCross-file location for navigation.
selection_range: Utf16RangePreferred selection range within the target (usually a tighter span than location.range).
data_json: Option<String>Optional raw integration payload, encoded as JSON text.
Trait Implementations§
Source§impl Clone for HierarchyItem
impl Clone for HierarchyItem
Source§fn clone(&self) -> HierarchyItem
fn clone(&self) -> HierarchyItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HierarchyItem
impl Debug for HierarchyItem
impl Eq for HierarchyItem
Source§impl PartialEq for HierarchyItem
impl PartialEq for HierarchyItem
Source§fn eq(&self, other: &HierarchyItem) -> bool
fn eq(&self, other: &HierarchyItem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HierarchyItem
Auto Trait Implementations§
impl Freeze for HierarchyItem
impl RefUnwindSafe for HierarchyItem
impl Send for HierarchyItem
impl Sync for HierarchyItem
impl Unpin for HierarchyItem
impl UnsafeUnpin for HierarchyItem
impl UnwindSafe for HierarchyItem
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