Struct rustc_borrowck::region_infer::reverse_sccs::ReverseSccGraph
source · pub(crate) struct ReverseSccGraph {
graph: VecGraph<ConstraintSccIndex>,
scc_regions: FxIndexMap<ConstraintSccIndex, Range<usize>>,
universal_regions: Vec<RegionVid>,
}
Fields§
§graph: VecGraph<ConstraintSccIndex>
§scc_regions: FxIndexMap<ConstraintSccIndex, Range<usize>>
For each SCC, the range of universal_regions
that use that SCC as
their value.
universal_regions: Vec<RegionVid>
All of the universal regions, in grouped so that scc_regions
can
index into here.
Implementations§
source§impl ReverseSccGraph
impl ReverseSccGraph
sourcepub(super) fn upper_bounds<'a>(
&'a self,
scc0: ConstraintSccIndex
) -> impl Iterator<Item = RegionVid> + 'a
pub(super) fn upper_bounds<'a>( &'a self, scc0: ConstraintSccIndex ) -> impl Iterator<Item = RegionVid> + 'a
Find all universal regions that are required to outlive the given SCC.
Auto Trait Implementations§
impl DynSend for ReverseSccGraph
impl DynSync for ReverseSccGraph
impl Freeze for ReverseSccGraph
impl RefUnwindSafe for ReverseSccGraph
impl Send for ReverseSccGraph
impl Sync for ReverseSccGraph
impl Unpin for ReverseSccGraph
impl UnwindSafe for ReverseSccGraph
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, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<T> Filterable for T
impl<T> Filterable for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<P> IntoQueryParam<P> for P
impl<P> IntoQueryParam<P> for P
fn into_query_param(self) -> P
source§impl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<'tcx, T> ToPredicate<'tcx, T> for T
impl<'tcx, T> ToPredicate<'tcx, T> for T
fn to_predicate(self, _tcx: TyCtxt<'tcx>) -> T
source§impl<Tcx, T> Value<Tcx> for Twhere
Tcx: DepContext,
impl<Tcx, T> Value<Tcx> for Twhere
Tcx: DepContext,
default fn from_cycle_error( tcx: Tcx, cycle_error: &CycleError, _guar: ErrorGuaranteed ) -> T
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
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: 128 bytes