Struct lsp2::SymbolInformation
pub struct SymbolInformation {
pub name: String,
pub kind: SymbolKind,
pub tags: Option<Vec<SymbolTag, Global>>,
pub deprecated: Option<bool>,
pub location: Location,
pub container_name: Option<String>,
}
Expand description
Represents information about programming constructs like variables, classes, interfaces etc.
Fields§
§name: String
The name of this symbol.
kind: SymbolKind
The kind of this symbol.
Tags for this completion item.
@since 3.16.0
deprecated: Option<bool>
👎Deprecated: Use tags instead
Indicates if this symbol is deprecated.
location: Location
The location of this symbol.
container_name: Option<String>
The name of the symbol containing this symbol.
Trait Implementations§
§impl Clone for SymbolInformation
impl Clone for SymbolInformation
§fn clone(&self) -> SymbolInformation
fn clone(&self) -> SymbolInformation
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 SymbolInformation
impl Debug for SymbolInformation
§impl<'de> Deserialize<'de> for SymbolInformation
impl<'de> Deserialize<'de> for SymbolInformation
§fn deserialize<__D>(
__deserializer: __D
) -> Result<SymbolInformation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SymbolInformation, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<SymbolInformation> for SymbolInformation
impl PartialEq<SymbolInformation> for SymbolInformation
§fn eq(&self, other: &SymbolInformation) -> bool
fn eq(&self, other: &SymbolInformation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for SymbolInformation
impl Serialize for SymbolInformation
§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 SymbolInformation
impl StructuralEq for SymbolInformation
impl StructuralPartialEq for SymbolInformation
Auto Trait Implementations§
impl RefUnwindSafe for SymbolInformation
impl Send for SymbolInformation
impl Sync for SymbolInformation
impl Unpin for SymbolInformation
impl UnwindSafe for SymbolInformation
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.