pub struct SymbolRow {
pub name: String,
pub kind_glyph: &'static str,
pub container: Option<String>,
pub depth: u32,
pub path: PathBuf,
pub line: u32,
pub col: u32,
}Expand description
One row of a document-symbol / workspace-symbol picker.
Carries the symbol’s name, kind, depth (for in-document
hierarchy indent), and the location to jump to. Built
host-side from the LSP DocumentSymbolResponse /
Vec<SymbolInformation> so the picker doesn’t depend on
lsp-types.
Fields§
§name: String§kind_glyph: &'static str§container: Option<String>§depth: u32Indent depth (0 = top-level). Document-symbol responses nest; workspace-symbol responses are flat (depth = 0).
path: PathBuf§line: u32LSP 0-based line.
col: u32utf-8 byte column.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SymbolRow
impl RefUnwindSafe for SymbolRow
impl Send for SymbolRow
impl Sync for SymbolRow
impl Unpin for SymbolRow
impl UnsafeUnpin for SymbolRow
impl UnwindSafe for SymbolRow
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more