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

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

Implementations

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

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

pub fn successors(&self, source: N) -> &[N]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[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, 'graph> 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
[src]

impl<N> Send for VecGraph<N> where
    N: Send
[src]

impl<N> Sync for VecGraph<N> where
    N: Sync
[src]

impl<N> Unpin for VecGraph<N> where
    N: Unpin
[src]

impl<N> UnwindSafe for VecGraph<N> where
    N: UnwindSafe
[src]

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> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>,