pub trait GraphExt {
fn insert(
&mut self,
tcx: TyCtxt<'_>,
impl_def_id: DefId,
overlap_mode: OverlapMode
) -> Result<Option<FutureCompatOverlapError>, OverlapError>;
fn record_impl_from_cstore(
&mut self,
tcx: TyCtxt<'_>,
parent: DefId,
child: DefId
);
}
Required Methods
sourcefn insert(
&mut self,
tcx: TyCtxt<'_>,
impl_def_id: DefId,
overlap_mode: OverlapMode
) -> Result<Option<FutureCompatOverlapError>, OverlapError>
fn insert(
&mut self,
tcx: TyCtxt<'_>,
impl_def_id: DefId,
overlap_mode: OverlapMode
) -> Result<Option<FutureCompatOverlapError>, OverlapError>
Insert a local impl into the specialization graph. If an existing impl
conflicts with it (has overlap, but neither specializes the other),
information about the area of overlap is returned in the Err
.
sourcefn record_impl_from_cstore(&mut self, tcx: TyCtxt<'_>, parent: DefId, child: DefId)
fn record_impl_from_cstore(&mut self, tcx: TyCtxt<'_>, parent: DefId, child: DefId)
Insert cached metadata mapping from a child impl back to its parent.