Struct lsp2::CallHierarchyItem
pub struct CallHierarchyItem {
pub name: String,
pub kind: SymbolKind,
pub tags: Option<Vec<SymbolTag, Global>>,
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 call hierarchy prepare and incoming calls or outgoing calls requests.
Trait Implementations§
§impl Clone for CallHierarchyItem
impl Clone for CallHierarchyItem
§fn clone(&self) -> CallHierarchyItem
fn clone(&self) -> CallHierarchyItem
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 CallHierarchyItem
impl Debug for CallHierarchyItem
§impl<'de> Deserialize<'de> for CallHierarchyItem
impl<'de> Deserialize<'de> for CallHierarchyItem
§fn deserialize<__D>(
__deserializer: __D
) -> Result<CallHierarchyItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CallHierarchyItem, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<CallHierarchyItem> for CallHierarchyItem
impl PartialEq<CallHierarchyItem> for CallHierarchyItem
§fn eq(&self, other: &CallHierarchyItem) -> bool
fn eq(&self, other: &CallHierarchyItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for CallHierarchyItem
impl Serialize for CallHierarchyItem
§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 StructuralPartialEq for CallHierarchyItem
Auto Trait Implementations§
impl RefUnwindSafe for CallHierarchyItem
impl Send for CallHierarchyItem
impl Sync for CallHierarchyItem
impl Unpin for CallHierarchyItem
impl UnwindSafe for CallHierarchyItem
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