struct DiagnosticItemCollector<'tcx> {
tcx: TyCtxt<'tcx>,
diagnostic_items: DiagnosticItems,
}Fields
tcx: TyCtxt<'tcx>diagnostic_items: DiagnosticItemsImplementations
sourceimpl<'tcx> DiagnosticItemCollector<'tcx>
impl<'tcx> DiagnosticItemCollector<'tcx>
fn new(tcx: TyCtxt<'tcx>) -> DiagnosticItemCollector<'tcx>
fn observe_item(&mut self, def_id: LocalDefId)
Trait Implementations
sourceimpl<'v, 'tcx> ItemLikeVisitor<'v> for DiagnosticItemCollector<'tcx>
impl<'v, 'tcx> ItemLikeVisitor<'v> for DiagnosticItemCollector<'tcx>
fn visit_item(&mut self, item: &Item<'_>)
fn visit_trait_item(&mut self, trait_item: &TraitItem<'_>)
fn visit_impl_item(&mut self, impl_item: &ImplItem<'_>)
fn visit_foreign_item(&mut self, foreign_item: &ForeignItem<'_>)
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for DiagnosticItemCollector<'tcx>
impl<'tcx> !Send for DiagnosticItemCollector<'tcx>
impl<'tcx> !Sync for DiagnosticItemCollector<'tcx>
impl<'tcx> Unpin for DiagnosticItemCollector<'tcx>
impl<'tcx> !UnwindSafe for DiagnosticItemCollector<'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes