[][src]Struct 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<N: Idx> WithNumNodes for VecGraph<N>[src]

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

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

impl<'graph, N: Idx> GraphSuccessors<'graph> for VecGraph<N>[src]

type Item = N

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> Erased for T[src]

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

impl<T> From<T> for 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.

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

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

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

impl<E> SpecializationError for E[src]