[][src]Struct rustc_ap_rustc_data_structures::graph::vec_graph::VecGraph

pub struct VecGraph<N: Idx> { /* fields omitted */ }

Methods

impl<N: Idx> VecGraph<N>[src]

pub fn new(num_nodes: usize, edge_pairs: Vec<(N, N)>) -> Self[src]

Important traits for &'_ mut [u8]
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]

type Item = N

type Iter = Cloned<Iter<'graph, N>>

impl<N: Idx> WithNumEdges for VecGraph<N>[src]

impl<N: Idx> WithNumNodes for VecGraph<N>[src]

impl<N: Idx> WithSuccessors for VecGraph<N>[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for VecGraph<N> where
    N: RefUnwindSafe

impl<N> Send for VecGraph<N> where
    N: Send

impl<N> Sync for VecGraph<N> where
    N: Sync

impl<N> Unpin for VecGraph<N> where
    N: Unpin

impl<N> UnwindSafe for VecGraph<N> where
    N: 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<E> SpecializationError for E[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.