[−][src]Struct rustc_data_structures::graph::scc::SccData
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]
&self
) -> usize
Number of SCCs,
pub(in graph::scc) fn successors(
&self,
scc: S
) -> &[S][src]
&self,
scc: S
) -> &[S]
Returns the successors of the given SCC.
pub(in graph::scc) fn create_scc(
&mut self,
successors: impl IntoIterator<Item = S>
) -> S[src]
&mut self,
successors: impl IntoIterator<Item = S>
) -> S
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,