[−][src]Struct rustc_ap_rustc_data_structures::graph::vec_graph::VecGraph
Methods
impl<N: Idx> VecGraph<N>
[src]
pub fn new(num_nodes: usize, edge_pairs: Vec<(N, N)>) -> Self
[src]
pub fn successors(&self, source: N) -> &[N]
[src]
Gets the successors for source
as a slice.
Trait Implementations
impl<N: Idx> DirectedGraph for VecGraph<N>
[src]
type Node = N
impl<'graph, N: Idx> GraphSuccessors<'graph> for VecGraph<N>
[src]
impl<N: Idx> WithNumEdges for VecGraph<N>
[src]
impl<N: Idx> WithNumNodes for VecGraph<N>
[src]
impl<N: Idx> WithSuccessors for VecGraph<N>
[src]
fn successors<'graph>(&'graph self, node: N) -> Self::Iter
[src]
ⓘImportant traits for DepthFirstSearch<'_, G>fn depth_first_search(&self, from: Self::Node) -> DepthFirstSearch<Self> where
Self: WithNumNodes,
[src]
ⓘImportant traits for DepthFirstSearch<'_, G>
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> 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,
ⓘImportant traits for &'_ mut Ifn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut I
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<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
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.
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>,