Struct ra_ap_hir::symbols::SymbolCollector
source · pub struct SymbolCollector<'a> { /* private fields */ }
Implementations§
source§impl<'a> SymbolCollector<'a>
impl<'a> SymbolCollector<'a>
Given a ModuleId
and a HirDatabase
, use the DefMap for the module’s crate to collect
all symbols that should be indexed for the given module.
pub fn new(db: &'a dyn HirDatabase) -> Self
pub fn collect(&mut self, module: Module)
pub fn finish(self) -> Vec<FileSymbol>
pub fn collect_module(db: &dyn HirDatabase, module: Module) -> Vec<FileSymbol>
Auto Trait Implementations§
impl<'a> Freeze for SymbolCollector<'a>
impl<'a> !RefUnwindSafe for SymbolCollector<'a>
impl<'a> !Send for SymbolCollector<'a>
impl<'a> !Sync for SymbolCollector<'a>
impl<'a> Unpin for SymbolCollector<'a>
impl<'a> !UnwindSafe for SymbolCollector<'a>
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> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.