Struct rustc_typeck::coherence::inherent_impls_overlap::InherentOverlapChecker [−][src]
struct InherentOverlapChecker<'tcx> {
tcx: TyCtxt<'tcx>,
}Fields
tcx: TyCtxt<'tcx>Implementations
impl<'tcx> InherentOverlapChecker<'tcx>[src]
impl<'tcx> InherentOverlapChecker<'tcx>[src]fn impls_have_common_items(
&self,
impl_items1: &AssocItems<'_>,
impl_items2: &AssocItems<'_>
) -> bool[src]
fn impls_have_common_items(
&self,
impl_items1: &AssocItems<'_>,
impl_items2: &AssocItems<'_>
) -> bool[src]Checks whether any associated items in impls 1 and 2 share the same identifier and namespace.
fn compare_hygienically(&self, item1: &AssocItem, item2: &AssocItem) -> bool[src]
fn check_for_common_items_in_impls(
&self,
impl1: DefId,
impl2: DefId,
overlap: OverlapResult<'_>
)[src]
&self,
impl1: DefId,
impl2: DefId,
overlap: OverlapResult<'_>
)
fn check_for_overlapping_inherent_impls(
&self,
impl1_def_id: DefId,
impl2_def_id: DefId
)[src]
&self,
impl1_def_id: DefId,
impl2_def_id: DefId
)
Trait Implementations
impl<'v, 'tcx> ItemLikeVisitor<'v> for InherentOverlapChecker<'tcx>[src]
impl<'v, 'tcx> ItemLikeVisitor<'v> for InherentOverlapChecker<'tcx>[src]fn visit_item(&mut self, item: &'v Item<'v>)[src]
fn visit_trait_item(&mut self, _trait_item: &TraitItem<'v>)[src]
fn visit_impl_item(&mut self, _impl_item: &ImplItem<'v>)[src]
fn visit_foreign_item(&mut self, _foreign_item: &ForeignItem<'v>)[src]
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for InherentOverlapChecker<'tcx>
impl<'tcx> !Send for InherentOverlapChecker<'tcx>
impl<'tcx> !Sync for InherentOverlapChecker<'tcx>
impl<'tcx> Unpin for InherentOverlapChecker<'tcx>
impl<'tcx> !UnwindSafe for InherentOverlapChecker<'tcx>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,