Struct rustc_data_structures::graph::scc::SccData [−][src]
Fields
ranges: IndexVec<S, Range<usize>>Expand description
For each SCC, the range of all_successors where its
successors can be found.
all_successors: Vec<S>Expand description
Contains the successors for all the Sccs, concatenated. The range of indices corresponding to a given SCC is found in its SccData.
Implementations
impl<S: Idx> SccData<S>[src]
impl<S: Idx> SccData<S>[src]fn successors(&self, scc: S) -> &[S]ⓘ[src]
fn successors(&self, scc: S) -> &[S]ⓘ[src]Returns the successors of the given SCC.
fn create_scc(&mut self, successors: impl IntoIterator<Item = S>) -> S[src]
fn create_scc(&mut self, successors: impl IntoIterator<Item = S>) -> S[src]Creates a new SCC with successors as its successors and
returns the resulting index.
Auto Trait Implementations
impl<S> RefUnwindSafe for SccData<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for SccData<S> where
S: Send,
S: Send,
impl<S> Sync for SccData<S> where
S: Sync,
S: Sync,
impl<S> Unpin for SccData<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for SccData<S> where
S: UnwindSafe,
S: UnwindSafe,
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<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,