Struct rustc_data_structures::graph::vec_graph::VecGraph [−][src]
Fields
node_starts: IndexVec<N, usize>Expand description
Maps from a given node to an index where the set of successors
for that node starts. The index indexes into the edges
vector. To find the range for a given node, we look up the
start for that node and then the start for the next node
(i.e., with an index 1 higher) and get the range between the
two. This vector always has an extra entry so that this works
even for the max element.
edge_targets: Vec<N>Implementations
impl<N: Idx> VecGraph<N>[src]
impl<N: Idx> VecGraph<N>[src]Trait Implementations
impl<N: Idx> DirectedGraph for VecGraph<N>[src]
impl<N: Idx> DirectedGraph for VecGraph<N>[src]type Node = N
impl<N: Idx, 'graph> GraphSuccessors<'graph> for VecGraph<N>[src]
impl<N: Idx, 'graph> GraphSuccessors<'graph> for VecGraph<N>[src]impl<N: Idx> WithSuccessors for VecGraph<N>[src]
impl<N: Idx> WithSuccessors for VecGraph<N>[src]fn successors(&self, node: N) -> <VecGraph<N> as GraphSuccessors<'_>>::Iter[src]
fn depth_first_search(&self, from: Self::Node) -> DepthFirstSearch<'_, Self>ⓘNotable traits for DepthFirstSearch<'_, G>
impl<G: ?Sized> Iterator for DepthFirstSearch<'_, G> where
G: DirectedGraph + WithNumNodes + WithSuccessors, type Item = G::Node; where
Self: WithNumNodes, [src]
Notable traits for DepthFirstSearch<'_, G>
impl<G: ?Sized> Iterator for DepthFirstSearch<'_, G> where
G: DirectedGraph + WithNumNodes + WithSuccessors, type Item = G::Node;Self: WithNumNodes,
Auto Trait Implementations
impl<N> RefUnwindSafe for VecGraph<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for VecGraph<N> where
N: Send,
N: Send,
impl<N> Sync for VecGraph<N> where
N: Sync,
N: Sync,
impl<N> Unpin for VecGraph<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for VecGraph<N> where
N: UnwindSafe,
N: 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,