Struct rustc_typeck::coherence::inherent_impls::InherentCollect
source · [−]struct InherentCollect<'tcx> {
tcx: TyCtxt<'tcx>,
impls_map: CrateInherentImpls,
}Fields
tcx: TyCtxt<'tcx>impls_map: CrateInherentImplsImplementations
sourceimpl<'tcx> InherentCollect<'tcx>
impl<'tcx> InherentCollect<'tcx>
fn check_def_id(&mut self, item: &Item<'_>, def_id: DefId)
fn check_primitive_impl(
&self,
impl_def_id: LocalDefId,
lang_def_id: Option<DefId>,
lang_def_id2: Option<DefId>,
lang: &str,
ty: &str,
span: Span,
assoc_items: &[ImplItemRef]
)
Trait Implementations
sourceimpl<'tcx> ItemLikeVisitor<'_> for InherentCollect<'tcx>
impl<'tcx> ItemLikeVisitor<'_> for InherentCollect<'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 InherentCollect<'tcx>
impl<'tcx> !Send for InherentCollect<'tcx>
impl<'tcx> !Sync for InherentCollect<'tcx>
impl<'tcx> Unpin for InherentCollect<'tcx>
impl<'tcx> !UnwindSafe for InherentCollect<'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
impl<'a, T> Captures<'a> for T where
T: ?Sized,
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: 40 bytes