pub struct SemanticSymbol {
pub path: PathBuf,
pub namespace: SemanticNamespace,
pub declaration_kind: String,
pub exported_name: String,
pub local_name: String,
pub owner: Option<String>,
pub line: u32,
pub col: u32,
}Expand description
Stable identity for a declaration sent to or returned by the backend.
Fields§
§path: PathBufProject-root-relative declaration path.
namespace: SemanticNamespaceValue or type namespace.
declaration_kind: StringStable declaration kind, such as function or class-method.
exported_name: StringName exposed to consumers.
local_name: StringLocal declaration name.
owner: Option<String>Optional owning class or namespace.
line: u32One-based declaration line.
col: u32Zero-based UTF-8 byte column.
Trait Implementations§
Source§impl Clone for SemanticSymbol
impl Clone for SemanticSymbol
Source§impl Debug for SemanticSymbol
impl Debug for SemanticSymbol
Source§impl<'de> Deserialize<'de> for SemanticSymbol
impl<'de> Deserialize<'de> for SemanticSymbol
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
impl Eq for SemanticSymbol
Source§impl PartialEq for SemanticSymbol
impl PartialEq for SemanticSymbol
Source§impl Serialize for SemanticSymbol
impl Serialize for SemanticSymbol
impl StructuralPartialEq for SemanticSymbol
Auto Trait Implementations§
impl Freeze for SemanticSymbol
impl RefUnwindSafe for SemanticSymbol
impl Send for SemanticSymbol
impl Sync for SemanticSymbol
impl Unpin for SemanticSymbol
impl UnsafeUnpin for SemanticSymbol
impl UnwindSafe for SemanticSymbol
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.