Struct ra_ap_ide_db::symbol_index::FileSymbol [−][src]
pub struct FileSymbol {
pub file_id: FileId,
pub name: SmolStr,
pub kind: FileSymbolKind,
pub range: TextRange,
pub ptr: SyntaxNodePtr,
pub name_range: Option<TextRange>,
pub container_name: Option<SmolStr>,
}
Expand description
The actual data that is stored in the index. It should be as compact as possible.
Fields
file_id: FileId
name: SmolStr
kind: FileSymbolKind
range: TextRange
ptr: SyntaxNodePtr
name_range: Option<TextRange>
container_name: Option<SmolStr>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FileSymbol
impl Send for FileSymbol
impl Sync for FileSymbol
impl Unpin for FileSymbol
impl UnwindSafe for FileSymbol
Blanket Implementations
Mutably borrows from an owned value. Read more
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more