pub struct Symbol {
pub span: Option<(u32, u32)>,
pub signature: String,
pub uses: String,
pub kind: SymbolKind,
pub tier: String,
pub doc: Option<String>,
pub own: bool,
}Expand description
One name an editor can ask about.
Fields§
§span: Option<(u32, u32)>Where the declaration is in this document, or None for an imported name — whose
declaration is in a .becki this editor is not showing. A jump-to-definition that landed on
a byte range of the wrong file is worse than one that declines.
signature: StringThe signature as beck iface would publish it — render_item, not a second renderer.
uses: StringThe uses … clause of that signature, alone — render_uses, the half of it an inlay
hint offers where the source did not write one. Empty for a name that performs nothing.
kind: SymbolKind§tier: String§doc: Option<String>The ## comment attached to the declaration, if it has one.
own: boolTrue for a name this module declares, false for one it imported.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnwindSafe for Symbol
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