pub struct Symbol {
pub kind: SymbolKind,
pub name: String,
pub module: String,
pub span: Span,
pub detail: String,
pub container: Option<String>,
}Expand description
One declared name.
Fields§
§kind: SymbolKindKind.
name: StringName.
module: StringThe module that has the declaration.
span: SpanThe range of the declared name.
detail: StringA one-line description of the declaration (such as label start(n: int) -> str).
container: Option<String>The enclosing name (the type name for fields and variants, the label name for locals and parameters).
Trait Implementations§
impl Eq for Symbol
impl StructuralPartialEq for Symbol
Auto Trait Implementations§
impl Forget for Symbol
impl Freeze for Symbol
impl Move for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnsafeUnpin 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