pub struct ResolvedSymbol {
pub name: String,
pub kind: u32,
pub container: Option<String>,
pub position: Position2D,
pub position_source: PositionSource,
}Expand description
The symbol a name resolved to, reported so the caller can audit and reuse the queried position.
Fields§
§name: StringThe symbol’s name as the server reports it.
kind: u32Numeric LSP SymbolKind.
container: Option<String>Enclosing symbol, when the server reports one.
position: Position2DThe 1-based position that was queried.
position_source: PositionSourceHow position was determined.
Trait Implementations§
Source§impl Clone for ResolvedSymbol
impl Clone for ResolvedSymbol
Source§impl Debug for ResolvedSymbol
impl Debug for ResolvedSymbol
impl Eq for ResolvedSymbol
Source§impl JsonSchema for ResolvedSymbol
impl JsonSchema for ResolvedSymbol
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ResolvedSymbol
impl PartialEq for ResolvedSymbol
Source§impl Serialize for ResolvedSymbol
impl Serialize for ResolvedSymbol
impl StructuralPartialEq for ResolvedSymbol
Auto Trait Implementations§
impl Freeze for ResolvedSymbol
impl RefUnwindSafe for ResolvedSymbol
impl Send for ResolvedSymbol
impl Sync for ResolvedSymbol
impl Unpin for ResolvedSymbol
impl UnsafeUnpin for ResolvedSymbol
impl UnwindSafe for ResolvedSymbol
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,
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.