[−][src]Struct rustc_data_structures::graph::scc::SccData

pub(in graph::scc) struct SccData<S: Idx> {
    ranges: IndexVec<S, Range<usize>>,
    all_successors: Vec<S>,
}

Fields

ranges: IndexVec<S, Range<usize>>

For each SCC, the range of all_successors where its successors can be found.

all_successors: Vec<S>

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]

pub(in graph::scc) fn len(
    &self
) -> usize
[src]

Number of SCCs,

pub(in graph::scc) fn successors(
    &self,
    scc: S
) -> &[S]
[src]

Returns the successors of the given SCC.

pub(in graph::scc) 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, 

impl<S> Send for SccData<S> where
    S: Send, 

impl<S> Sync for SccData<S> where
    S: Sync, 

impl<S> Unpin for SccData<S> where
    S: Unpin, 

impl<S> UnwindSafe for SccData<S> where
    S: UnwindSafe, 

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.